feat(quickfix): mark sigle fix isPrefered

This commit is contained in:
chemzqm 2019-06-04 14:23:12 +08:00
parent 4db91bd8b7
commit ab0927f744

View file

@ -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,