mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Merge pull request #10068 from Microsoft/lshost_realpath
Provide `realpath` for module resolvution in LSHost
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user