Skip to content

Commit 250913a

Browse files
committed
Normalize paths in GetEditsForFileRename
1 parent 4240d9d commit 250913a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ namespace ts.server {
17001700

17011701
private getEditsForFileRename(args: protocol.GetEditsForFileRenameRequestArgs, simplifiedResult: boolean): ReadonlyArray<protocol.FileCodeEdits> | ReadonlyArray<FileTextChanges> {
17021702
const { file, project } = this.getFileAndProject(args);
1703-
const changes = project.getLanguageService().getEditsForFileRename(args.oldFilePath, args.newFilePath, this.getFormatOptions(file), this.getPreferences(file));
1703+
const changes = project.getLanguageService().getEditsForFileRename(toNormalizedPath(args.oldFilePath), toNormalizedPath(args.newFilePath), this.getFormatOptions(file), this.getPreferences(file));
17041704
return simplifiedResult ? this.mapTextChangesToCodeEdits(project, changes) : changes;
17051705
}
17061706

0 commit comments

Comments
 (0)