Fix mispelled variable name (#63)
This commit is contained in:
parent
4ac0cd85cd
commit
c80ae7b19b
1 changed files with 4 additions and 4 deletions
|
@ -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: '',
|
||||
|
|
Loading…
Reference in a new issue