Skip to content

Commit

Permalink
workspace edits from updating paths are marked as refactoring fyi @mjbvz
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 16, 2022
1 parent 52b0cd9 commit bcd64bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/typescript-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"enabledApiProposals": [
"resolvers",
"workspaceTrust"
"workspaceTrust",
"workspaceEditIsRefactoring"
],
"capabilities": {
"virtualWorkspaces": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
}
Expand Down
1 change: 1 addition & 0 deletions extensions/typescript-language-features/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"src/**/*",
"../../src/vscode-dts/vscode.d.ts",
"../../src/vscode-dts/vscode.proposed.inlayHints.d.ts",
"../../src/vscode-dts/vscode.proposed.workspaceEditIsRefactoring.d.ts",
"../../src/vscode-dts/vscode.proposed.languageStatus.d.ts",
"../../src/vscode-dts/vscode.proposed.resolvers.d.ts",
"../../src/vscode-dts/vscode.proposed.workspaceTrust.d.ts",
Expand Down

0 comments on commit bcd64bc

Please sign in to comment.