fix isPreferred of CodeAction

This commit is contained in:
Qiming Zhao 2020-09-12 01:26:53 +08:00
parent 2d0b2b1a1b
commit ae48046032

View file

@ -248,7 +248,7 @@ export default class TypeScriptQuickFixProvider implements CodeActionProvider {
}
codeAction.edit = getEditForCodeAction(this.client, tsAction)
codeAction.diagnostics = [diagnostic]
; (codeAction as any).isPrefered = true
codeAction.isPreferred = true
if (tsAction.commands) {
codeAction.command = {
command: ApplyCodeActionCommand.ID,