Disable rename after refactoring in interactive playground

Fixes #75137
This commit is contained in:
Matt Bierner
2020-11-04 16:36:49 -08:00
parent e6079bd127
commit 4a54027a82

View File

@@ -53,10 +53,13 @@ class DidApplyRefactoringCommand implements Command {
const renameLocation = args.codeAction.renameLocation;
if (renameLocation) {
await vscode.commands.executeCommand('editor.action.rename', [
args.codeAction.document.uri,
typeConverters.Position.fromLocation(renameLocation)
]);
// Disable renames in interactive playground https://github.com/microsoft/vscode/issues/75137
if (args.codeAction.document.uri.scheme !== fileSchemes.walkThroughSnippet) {
await vscode.commands.executeCommand('editor.action.rename', [
args.codeAction.document.uri,
typeConverters.Position.fromLocation(renameLocation)
]);
}
}
}
}