From ab0927f744de03ef58fcd95eb68f5f04b81ef37f Mon Sep 17 00:00:00 2001 From: chemzqm Date: Tue, 4 Jun 2019 14:23:12 +0800 Subject: [PATCH] feat(quickfix): mark sigle fix isPrefered --- src/server/features/quickfix.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/features/quickfix.ts b/src/server/features/quickfix.ts index f74eeaf..e05bc1a 100644 --- a/src/server/features/quickfix.ts +++ b/src/server/features/quickfix.ts @@ -251,6 +251,7 @@ export default class TypeScriptQuickFixProvider implements CodeActionProvider { } codeAction.edit = getEditForCodeAction(this.client, tsAction) codeAction.diagnostics = [diagnostic] + ; (codeAction as any).isPrefered = true if (tsAction.commands) { codeAction.command = { command: ApplyCodeActionCommand.ID,