Skip to content

Commit 298d23d

Browse files
committed
Normalize this.currentDirectory
1 parent 9484653 commit 298d23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ namespace ts.server {
450450
if (this.host.realpath) {
451451
this.realpathToScriptInfos = createMultiMap();
452452
}
453-
this.currentDirectory = this.host.getCurrentDirectory();
453+
this.currentDirectory = normalizePath(this.host.getCurrentDirectory());
454454
this.toCanonicalFileName = createGetCanonicalFileName(this.host.useCaseSensitiveFileNames);
455455
this.globalCacheLocationDirectoryPath = this.typingsInstaller.globalTypingsCacheLocation &&
456456
ensureTrailingDirectorySeparator(this.toPath(this.typingsInstaller.globalTypingsCacheLocation));

0 commit comments

Comments
 (0)