do getDirectoryPath after normalization

This commit is contained in:
Vladimir Matveev
2016-06-15 13:52:09 -07:00
parent e8c5a591a4
commit f103f20b69
+1 -1
View File
@@ -1000,7 +1000,7 @@ namespace ts.server {
* the tsconfig file content and update the project; otherwise we create a new one.
*/
private openOrUpdateConfiguredProjectForFile(fileName: string): { configFileName?: string, configFileErrors?: Diagnostic[] } {
const searchPath = ts.normalizePath(getDirectoryPath(fileName));
const searchPath = getDirectoryPath(normalizePath(fileName));
this.log("Search path: " + searchPath, "Info");
// check if this file is already included in one of external projects
const configFileName = this.findConfigFile(searchPath);