提交 aed2113e 编写于 作者: B Benjamin Pasero

Merge pull request #520 from waywardmonkeys/fix-typos-in-line-commenter-comments

Fix typos in LineCommentCommand comments.
...@@ -104,7 +104,7 @@ export class LineCommentCommand implements EditorCommon.ICommand { ...@@ -104,7 +104,7 @@ export class LineCommentCommand implements EditorCommon.ICommand {
/** /**
* Analyze lines and decide which lines are relevant and what the toggle should do. * Analyze lines and decide which lines are relevant and what the toggle should do.
* Also, build up several offsets and lengths usefull in the generation of editor operations. * Also, build up several offsets and lengths useful in the generation of editor operations.
*/ */
public static _analyzeLines(type:Type, model:ISimpleModel, lines:ILinePreflightData[], startLineNumber:number): IPreflightData { public static _analyzeLines(type:Type, model:ISimpleModel, lines:ILinePreflightData[], startLineNumber:number): IPreflightData {
var lineData: ILinePreflightData, var lineData: ILinePreflightData,
...@@ -206,7 +206,7 @@ export class LineCommentCommand implements EditorCommon.ICommand { ...@@ -206,7 +206,7 @@ export class LineCommentCommand implements EditorCommon.ICommand {
} }
/** /**
* Given a succesfull analysis, execute either insert line comments, either remove line comments * Given a successful analysis, execute either insert line comments, either remove line comments
*/ */
private _executeLineComments(model:ISimpleModel, builder:EditorCommon.IEditOperationBuilder, data:IPreflightData, s:EditorCommon.IEditorSelection): void { private _executeLineComments(model:ISimpleModel, builder:EditorCommon.IEditOperationBuilder, data:IPreflightData, s:EditorCommon.IEditorSelection): void {
...@@ -267,7 +267,7 @@ export class LineCommentCommand implements EditorCommon.ICommand { ...@@ -267,7 +267,7 @@ export class LineCommentCommand implements EditorCommon.ICommand {
} }
/** /**
* Given an unsuccesfull analysis, delegate to the block comment command * Given an unsuccessful analysis, delegate to the block comment command
*/ */
private _executeBlockComment(model:EditorCommon.ITokenizedModel, builder:EditorCommon.IEditOperationBuilder, s:EditorCommon.IEditorSelection): void { private _executeBlockComment(model:EditorCommon.ITokenizedModel, builder:EditorCommon.IEditOperationBuilder, s:EditorCommon.IEditorSelection): void {
var commentsSupport = model.getModeAtPosition(s.startLineNumber, s.startColumn).commentsSupport; var commentsSupport = model.getModeAtPosition(s.startLineNumber, s.startColumn).commentsSupport;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册