Skip to content

Commit 970ec1a

Browse files
committed
normalize slashes in names of external projects
1 parent bdaaf66 commit 970ec1a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/server/utilities.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ namespace ts.server {
3838
// TODO: fixme
3939
return <Path>"";
4040
case ProjectKind.External:
41-
const projectName = project.getProjectName();
42-
const host = project.projectService.host;
43-
return host.fileExists(projectName) ? <Path>getDirectoryPath(projectName) : <Path>projectName;
41+
const projectName = normalizeSlashes(project.getProjectName());
42+
return project.projectService.host.fileExists(projectName) ? <Path>getDirectoryPath(projectName) : <Path>projectName;
4443
}
4544
}
4645

0 commit comments

Comments
 (0)