From c80ae7b19b038f380639e1c5b5e3c3a0b9252f6c Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Tue, 27 Aug 2019 05:21:42 +0200 Subject: [PATCH] Fix mispelled variable name (#63) --- src/server/features/completionItemProvider.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/features/completionItemProvider.ts b/src/server/features/completionItemProvider.ts index 0a0f1df..f4cda06 100644 --- a/src/server/features/completionItemProvider.ts +++ b/src/server/features/completionItemProvider.ts @@ -256,10 +256,10 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP // Try to extract out the additionalTextEdits for the current file. // Also check if we still have to apply other workspace edits const additionalTextEdits: TextEdit[] = [] - let hasReaminingCommandsOrEdits = false + let hasRemainingCommandsOrEdits = false for (const tsAction of detail.codeActions) { if (tsAction.commands) { - hasReaminingCommandsOrEdits = true + hasRemainingCommandsOrEdits = true } // Convert all edits in the current file using `additionalTextEdits` if (tsAction.changes) { @@ -269,7 +269,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP ...change.textChanges.map(typeConverters.TextEdit.fromCodeEdit) ) } else { - hasReaminingCommandsOrEdits = true + hasRemainingCommandsOrEdits = true } } } @@ -277,7 +277,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP let command = null - if (hasReaminingCommandsOrEdits) { + if (hasRemainingCommandsOrEdits) { // Create command that applies all edits not in the current file. command = { title: '',