We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed4fead + d5c6731 commit d16aa30Copy full SHA for d16aa30
src/server/lsHost.ts
@@ -13,6 +13,7 @@ namespace ts.server {
13
14
private readonly resolveModuleName: typeof resolveModuleName;
15
readonly trace: (s: string) => void;
16
+ readonly realpath?: (path: string) => string;
17
18
constructor(private readonly host: ServerHost, private readonly project: Project, private readonly cancellationToken: HostCancellationToken) {
19
this.getCanonicalFileName = ts.createGetCanonicalFileName(this.host.useCaseSensitiveFileNames);
@@ -39,6 +40,10 @@ namespace ts.server {
39
40
}
41
return primaryResult;
42
};
43
+
44
+ if (this.host.realpath) {
45
+ this.realpath = path => this.host.realpath(path);
46
+ }
47
48
49
public startRecordingFilesWithChangedResolutions() {
0 commit comments