Use realpathSync.native on case-insensitive file systems (#44966)

* Make getSourceOfProjectReferenceRedirect take a Path

* Add useCaseSensitiveFileNames to ModuleResolutionHost

...so that path comparisons can use it during module resolution.

* Re-enable realpathSync.native for case-insensitive file systems
This commit is contained in:
Andrew Casey
2021-08-26 15:35:04 -07:00
committed by GitHub
parent 983ddf5bb5
commit 7fc1cb4b36
10 changed files with 39 additions and 28 deletions

View File

@@ -1706,6 +1706,7 @@ namespace ts.server {
readFile: this.projectService.host.readFile.bind(this.projectService.host),
getDirectories: this.projectService.host.getDirectories.bind(this.projectService.host),
trace: this.projectService.host.trace?.bind(this.projectService.host),
useCaseSensitiveFileNames: this.program.useCaseSensitiveFileNames(),
};
}
return this.projectService.host;