mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Noop when moving a symbol into the file it is already in (#183866)
Fixes #183793
This commit is contained in:
parent
8d59fc4e0f
commit
8a71f8515d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue