mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
normalize slashes in names of external projects
This commit is contained in:
parent
bdaaf66702
commit
970ec1afb0
@ -38,9 +38,8 @@ namespace ts.server {
|
||||
// TODO: fixme
|
||||
return <Path>"";
|
||||
case ProjectKind.External:
|
||||
const projectName = project.getProjectName();
|
||||
const host = project.projectService.host;
|
||||
return host.fileExists(projectName) ? <Path>getDirectoryPath(projectName) : <Path>projectName;
|
||||
const projectName = normalizeSlashes(project.getProjectName());
|
||||
return project.projectService.host.fileExists(projectName) ? <Path>getDirectoryPath(projectName) : <Path>projectName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user