Merge pull request #10068 from Microsoft/lshost_realpath

Provide `realpath` for module resolvution in LSHost
This commit is contained in:
Andy
2016-08-01 10:26:31 -07:00
committed by GitHub

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