Skip to content

Commit 8a71f85

Browse files
authored
Noop when moving a symbol into the file it is already in (microsoft#183866)
Fixes microsoft#183793
1 parent 8d59fc4 commit 8a71f85

File tree

1 file changed

+1
-1
lines changed
  • extensions/typescript-language-features/src/languageFeatures

1 file changed

+1
-1
lines changed

extensions/typescript-language-features/src/languageFeatures/refactor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class MoveToFileRefactorCommand implements Command {
145145
}
146146

147147
const targetFile = await this.getTargetFile(args.document, file, args.range);
148-
if (!targetFile) {
148+
if (!targetFile || targetFile.toString() === file.toString()) {
149149
return;
150150
}
151151

0 commit comments

Comments
 (0)