Skip to content

Commit 8f0c7ef

Browse files
committed
Pass the right host to getEffectiveTyperoots
1 parent a26d310 commit 8f0c7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ namespace ts {
225225
traceEnabled
226226
};
227227

228-
const typeRoots = getEffectiveTypeRoots(options, host.getCurrentDirectory && host.getCurrentDirectory());
228+
const typeRoots = getEffectiveTypeRoots(options, host);
229229
if (traceEnabled) {
230230
if (containingFile === undefined) {
231231
if (typeRoots === undefined) {
@@ -1086,7 +1086,7 @@ namespace ts {
10861086
// Walk the primary type lookup locations
10871087
const result: string[] = [];
10881088
if (host.directoryExists && host.getDirectories) {
1089-
const typeRoots = getEffectiveTypeRoots(options, host.getCurrentDirectory && host.getCurrentDirectory());
1089+
const typeRoots = getEffectiveTypeRoots(options, host);
10901090
if (typeRoots) {
10911091
for (const root of typeRoots) {
10921092
if (host.directoryExists(root)) {

0 commit comments

Comments
 (0)