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

Provide `realpath` for module resolution in LSHost
This commit is contained in:
Andy 2016-08-02 06:09:50 -07:00 committed by GitHub
commit 8ceeb4bdc4

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>(