feat(quickfix): mark sigle fix isPrefered
This commit is contained in:
parent
4db91bd8b7
commit
ab0927f744
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ export default class TypeScriptQuickFixProvider implements CodeActionProvider {
|
||||||
}
|
}
|
||||||
codeAction.edit = getEditForCodeAction(this.client, tsAction)
|
codeAction.edit = getEditForCodeAction(this.client, tsAction)
|
||||||
codeAction.diagnostics = [diagnostic]
|
codeAction.diagnostics = [diagnostic]
|
||||||
|
; (codeAction as any).isPrefered = true
|
||||||
if (tsAction.commands) {
|
if (tsAction.commands) {
|
||||||
codeAction.command = {
|
codeAction.command = {
|
||||||
command: ApplyCodeActionCommand.ID,
|
command: ApplyCodeActionCommand.ID,
|
||||||
|
|
Loading…
Reference in a new issue