mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Noop when moving a symbol into the file it is already in (#183866)
Fixes #183793
This commit is contained in:
@@ -145,7 +145,7 @@ class MoveToFileRefactorCommand implements Command {
|
||||
}
|
||||
|
||||
const targetFile = await this.getTargetFile(args.document, file, args.range);
|
||||
if (!targetFile) {
|
||||
if (!targetFile || targetFile.toString() === file.toString()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user