Skip to content

Commit 0ab3c1f

Browse files
committed
Normalize this.currentDirectory
1 parent 9484653 commit 0ab3c1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/editorServices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ namespace ts.server {
403403
/* @internal */
404404
pendingEnsureProjectForOpenFiles: boolean;
405405

406-
readonly currentDirectory: string;
406+
readonly currentDirectory: NormalizedPath;
407407
readonly toCanonicalFileName: (f: string) => string;
408408

409409
public readonly host: ServerHost;
@@ -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 = toNormalizedPath(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)