mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
add WorkspaceEditMetadata and use it for applyEdit, (#160996)
* add `WorkspaceEditMetadata` and use it for `applyEdit`, https://github.com/microsoft/vscode/issues/112109 * fix compilo in tests * workspace edits from updating paths are marked as refactoring fyi @mjbvz
This commit is contained in:
@@ -114,7 +114,7 @@ class UpdateImportsOnFileRenameHandler extends Disposable {
|
||||
|
||||
if (edits.size) {
|
||||
if (await this.confirmActionWithUser(resourcesBeingRenamed)) {
|
||||
await vscode.workspace.applyEdit(edits);
|
||||
await vscode.workspace.applyEdit(edits, { isRefactoring: true });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user