Skip to content

Commit 6371085

Browse files
authored
Merge pull request microsoft#63792 from vim88/fix_typo_in_comments
Fixes typo and occurrences of double words in comments.
2 parents be5823d + 510d90d commit 6371085

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/emmet/src/test/toggleComment.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
7373
new Selection(3, 17, 3, 17), // cursor inside the inner span element
7474
new Selection(4, 5, 4, 5), // cursor inside opening tag
7575
new Selection(5, 35, 5, 35), // cursor inside closing tag
76-
new Selection(7, 3, 7, 3), // cursor inside open tag of <ul> one of of whose children is already commented
76+
new Selection(7, 3, 7, 3), // cursor inside open tag of <ul> one of whose children is already commented
7777
new Selection(14, 8, 14, 8), // cursor inside the css property inside the style tag
7878
new Selection(18, 3, 18, 3) // cursor inside the css rule inside the style tag
7979
];
@@ -114,7 +114,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
114114
editor.selections = [
115115
new Selection(3, 7, 3, 25), // <span>Hello</span><
116116
new Selection(4, 3, 4, 30), // <li><span>There</span></li>
117-
new Selection(7, 2, 10, 7), // The <ul> one of of whose children is already commented
117+
new Selection(7, 2, 10, 7), // The <ul> one of whose children is already commented
118118
new Selection(14, 4, 14, 17), // css property inside the style tag
119119
new Selection(17, 3, 20, 4) // the css rule inside the style tag
120120
];
@@ -192,7 +192,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
192192
return withRandomFileEditor(contents, 'html', (editor, doc) => {
193193
editor.selections = [
194194
new Selection(3, 24, 4, 20),
195-
new Selection(7, 2, 9, 10) // The <ul> one of of whose children is already commented
195+
new Selection(7, 2, 9, 10) // The <ul> one of whose children is already commented
196196
];
197197

198198
return toggleComment().then(() => {
@@ -232,7 +232,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
232232
new Selection(3, 17, 3, 17), // cursor inside the inner span element
233233
new Selection(4, 5, 4, 5), // two cursors: one inside opening tag
234234
new Selection(4, 17, 4, 17), // and the second inside the inner span element
235-
new Selection(7, 3, 7, 3), // two cursors: one inside open tag of <ul> one of of whose children is already commented
235+
new Selection(7, 3, 7, 3), // two cursors: one inside open tag of <ul> one of whose children is already commented
236236
new Selection(9, 10, 9, 10), // and the second inside inner li element, whose parent is selected
237237
new Selection(12, 3, 12, 3), // four nested cursors: one inside the style open tag
238238
new Selection(14, 8, 14, 8), // the second inside the css property inside the style tag

extensions/typescript-language-features/src/features/rename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class TypeScriptRenameProvider implements vscode.RenameProvider {
115115
newName: string,
116116
token: vscode.CancellationToken,
117117
): Promise<vscode.WorkspaceEdit | undefined> {
118-
// Make sure we preserve file exension if none provided
118+
// Make sure we preserve file extension if none provided
119119
if (!path.extname(newName)) {
120120
newName += path.extname(fileToRename);
121121
}

src/vs/editor/common/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ export interface CodeActionProvider {
553553
provideCodeActions(model: model.ITextModel, range: Range | Selection, context: CodeActionContext, token: CancellationToken): ProviderResult<CodeAction[]>;
554554

555555
/**
556-
* Optional list of of CodeActionKinds that this provider returns.
556+
* Optional list of CodeActionKinds that this provider returns.
557557
*/
558558
providedCodeActionKinds?: ReadonlyArray<string>;
559559
}

src/vs/workbench/browser/parts/editor/editorGroupView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
764764
}
765765

766766
// Actually move the editor if a specific index is provided and we figure
767-
// out that the the editor is already opened at a different index. This
767+
// out that the editor is already opened at a different index. This
768768
// ensures the right set of events are fired to the outside.
769769
if (typeof openEditorOptions.index === 'number') {
770770
const indexOfEditor = this._group.indexOf(editor);

0 commit comments

Comments
 (0)