mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Set isRefactoring for all TS refactoring edits (#183982)
This commit is contained in:
@@ -109,7 +109,7 @@ class SelectRefactorCommand implements Command {
|
||||
await tsAction.resolve(nulToken);
|
||||
|
||||
if (tsAction.edit) {
|
||||
if (!(await vscode.workspace.applyEdit(tsAction.edit))) {
|
||||
if (!(await vscode.workspace.applyEdit(tsAction.edit, { isRefactoring: true }))) {
|
||||
vscode.window.showErrorMessage(vscode.l10n.t("Could not apply refactoring"));
|
||||
return;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ class MoveToFileRefactorCommand implements Command {
|
||||
return;
|
||||
}
|
||||
const edit = toWorkspaceEdit(this.client, response.body.edits);
|
||||
if (!(await vscode.workspace.applyEdit(edit))) {
|
||||
if (!(await vscode.workspace.applyEdit(edit, { isRefactoring: true }))) {
|
||||
vscode.window.showErrorMessage(vscode.l10n.t("Could not apply refactoring"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user