mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
Adopt resolveCodeAction for JS/TS refactorings
This commit is contained in:
@@ -465,7 +465,7 @@ class CodeActionAdapter {
|
||||
if (!this._provider.resolveCodeAction) {
|
||||
return; // this should not happen...
|
||||
}
|
||||
const resolvedItem = await this._provider.resolveCodeAction(item, token);
|
||||
const resolvedItem = (await this._provider.resolveCodeAction(item, token)) ?? item;
|
||||
return resolvedItem?.edit
|
||||
? typeConvert.WorkspaceEdit.from(resolvedItem.edit)
|
||||
: undefined;
|
||||
|
||||
Reference in New Issue
Block a user