mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Only accept WorkspaceEdit, #34664
This commit is contained in:
@@ -106,7 +106,7 @@ export default class TypeScriptQuickFixProvider implements vscode.CodeActionProv
|
||||
private getCommandForAction(action: Proto.CodeAction): vscode.CodeAction {
|
||||
return {
|
||||
title: action.description,
|
||||
edits: getEditForCodeAction(this.client, action),
|
||||
edit: getEditForCodeAction(this.client, action),
|
||||
command: action.commands ? {
|
||||
command: ApplyCodeActionCommand.ID,
|
||||
arguments: [action],
|
||||
@@ -115,4 +115,4 @@ export default class TypeScriptQuickFixProvider implements vscode.CodeActionProv
|
||||
diagnostics: []
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user