From 7490ac87e19624809f83c2b91b2c51494681689f Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 1 Feb 2021 16:26:58 -0800 Subject: [PATCH] Fix spelling --- .../src/languageFeatures/completions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/typescript-language-features/src/languageFeatures/completions.ts b/extensions/typescript-language-features/src/languageFeatures/completions.ts index 13c90d1aa04..4beabbd16db 100644 --- a/extensions/typescript-language-features/src/languageFeatures/completions.ts +++ b/extensions/typescript-language-features/src/languageFeatures/completions.ts @@ -674,10 +674,10 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider< // Also check if we still have to apply other workspace edits and commands // using a vscode command const additionalTextEdits: vscode.TextEdit[] = []; - let hasReaminingCommandsOrEdits = false; + let hasRemainingCommandsOrEdits = false; for (const tsAction of detail.codeActions) { if (tsAction.commands) { - hasReaminingCommandsOrEdits = true; + hasRemainingCommandsOrEdits = true; } // Apply all edits in the current file using `additionalTextEdits` @@ -686,14 +686,14 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider< if (change.fileName === filepath) { additionalTextEdits.push(...change.textChanges.map(typeConverters.TextEdit.fromCodeEdit)); } else { - hasReaminingCommandsOrEdits = true; + hasRemainingCommandsOrEdits = true; } } } } let command: vscode.Command | undefined = undefined; - if (hasReaminingCommandsOrEdits) { + if (hasRemainingCommandsOrEdits) { // Create command that applies all edits not in the current file. command = { title: '',