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.
|
// Try to extract out the additionalTextEdits for the current file.
|
||||||
// Also check if we still have to apply other workspace edits
|
// Also check if we still have to apply other workspace edits
|
||||||
const additionalTextEdits: TextEdit[] = []
|
const additionalTextEdits: TextEdit[] = []
|
||||||
let hasReaminingCommandsOrEdits = false
|
let hasRemainingCommandsOrEdits = false
|
||||||
for (const tsAction of detail.codeActions) {
|
for (const tsAction of detail.codeActions) {
|
||||||
if (tsAction.commands) {
|
if (tsAction.commands) {
|
||||||
hasReaminingCommandsOrEdits = true
|
hasRemainingCommandsOrEdits = true
|
||||||
}
|
}
|
||||||
// Convert all edits in the current file using `additionalTextEdits`
|
// Convert all edits in the current file using `additionalTextEdits`
|
||||||
if (tsAction.changes) {
|
if (tsAction.changes) {
|
||||||
|
@ -269,7 +269,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
|
||||||
...change.textChanges.map(typeConverters.TextEdit.fromCodeEdit)
|
...change.textChanges.map(typeConverters.TextEdit.fromCodeEdit)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
hasReaminingCommandsOrEdits = true
|
hasRemainingCommandsOrEdits = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
|
||||||
|
|
||||||
let command = null
|
let command = null
|
||||||
|
|
||||||
if (hasReaminingCommandsOrEdits) {
|
if (hasRemainingCommandsOrEdits) {
|
||||||
// Create command that applies all edits not in the current file.
|
// Create command that applies all edits not in the current file.
|
||||||
command = {
|
command = {
|
||||||
title: '',
|
title: '',
|
||||||
|
|
Loading…
Add table
Reference in a new issue