Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit f422bc2

Browse files
committed
Remove ProjectConfiguration.moduleResolutionHost()
1 parent 4544f03 commit f422bc2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/project-manager.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export class ProjectManager implements Disposable {
395395
return Observable.merge(
396396
// References with `import`
397397
Observable.from(info.importedFiles)
398-
.map(importedFile => ts.resolveModuleName(importedFile.fileName, toUnixPath(filePath), compilerOpt, config.moduleResolutionHost()))
398+
.map(importedFile => ts.resolveModuleName(importedFile.fileName, toUnixPath(filePath), compilerOpt, this.localFs))
399399
// false means we didn't find a file defining the module. It
400400
// could still exist as an ambient module, which is why we
401401
// fetch global*.d.ts files.
@@ -418,7 +418,7 @@ export class ProjectManager implements Disposable {
418418
typeReferenceDirective.fileName,
419419
filePath,
420420
compilerOpt,
421-
config.moduleResolutionHost()
421+
this.localFs
422422
)
423423
)
424424
.filter(resolved => !!(resolved && resolved.resolvedTypeReferenceDirective && resolved.resolvedTypeReferenceDirective.resolvedFileName))
@@ -793,13 +793,6 @@ export class ProjectConfiguration {
793793
this.rootFilePath = rootFilePath;
794794
}
795795

796-
/**
797-
* @return module resolution host to use by TS service
798-
*/
799-
moduleResolutionHost(): ts.ModuleResolutionHost {
800-
return this.fs;
801-
}
802-
803796
/**
804797
* reset resets a ProjectConfiguration to its state immediately
805798
* after construction. It should be called whenever the underlying

0 commit comments

Comments
 (0)