提交 797b8fe0 编写于 作者: M Matt Bierner

Use proper path check for TS/JS refactor on windows

Fixes #39445
上级 a90eaf59
......@@ -49,7 +49,7 @@ class ApplyRefactoringCommand implements Command {
const renameLocation = response.body.renameLocation;
if (renameLocation) {
if (vscode.window.activeTextEditor && vscode.window.activeTextEditor.document.uri.fsPath === file) {
if (vscode.window.activeTextEditor && vscode.window.activeTextEditor.document.uri.fsPath === document.uri.fsPath) {
const pos = tsLocationToVsPosition(renameLocation);
vscode.window.activeTextEditor.selection = new vscode.Selection(pos, pos);
await vscode.commands.executeCommand('editor.action.rename');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册