File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/typescript-language-features/src/languageFeatures Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class SelectRefactorCommand implements Command {
109
109
await tsAction . resolve ( nulToken ) ;
110
110
111
111
if ( tsAction . edit ) {
112
- if ( ! ( await vscode . workspace . applyEdit ( tsAction . edit ) ) ) {
112
+ if ( ! ( await vscode . workspace . applyEdit ( tsAction . edit , { isRefactoring : true } ) ) ) {
113
113
vscode . window . showErrorMessage ( vscode . l10n . t ( "Could not apply refactoring" ) ) ;
114
114
return ;
115
115
}
@@ -161,7 +161,7 @@ class MoveToFileRefactorCommand implements Command {
161
161
return ;
162
162
}
163
163
const edit = toWorkspaceEdit ( this . client , response . body . edits ) ;
164
- if ( ! ( await vscode . workspace . applyEdit ( edit ) ) ) {
164
+ if ( ! ( await vscode . workspace . applyEdit ( edit , { isRefactoring : true } ) ) ) {
165
165
vscode . window . showErrorMessage ( vscode . l10n . t ( "Could not apply refactoring" ) ) ;
166
166
return ;
167
167
}
You can’t perform that action at this time.
0 commit comments