Merge pull request #10070 from Microsoft/release-2.0_lshost_realpath

Provide `realpath` for module resolution in LSHost
This commit is contained in:
Andy authored and GitHub committed 2016-08-02 06:09:50 -07:00
commit 8ceeb4bdc4
1 file changed
+3
+3
View File
@@ -115,6 +115,9 @@ namespace ts.server {
readFile: fileName => this.host.readFile(fileName),
directoryExists: directoryName => this.host.directoryExists(directoryName)
};
if (this.host.realpath) {
this.moduleResolutionHost.realpath = path => this.host.realpath(path);
}
}
private resolveNamesWithLocalCache<T extends Timestamped & { failedLookupLocations: string[] }, R>(