From ae480460329bae8de0e42fbddb5b901da499ff6d Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Sat, 12 Sep 2020 01:26:53 +0800 Subject: [PATCH] fix isPreferred of CodeAction --- src/server/features/quickfix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/features/quickfix.ts b/src/server/features/quickfix.ts index b0f8059..7b4d7d8 100644 --- a/src/server/features/quickfix.ts +++ b/src/server/features/quickfix.ts @@ -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,