Skip to content

Commit d89c3a2

Browse files
committed
Dont write to host just because we enable traceResolutions
1 parent 1ba0953 commit d89c3a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/harness/incrementalUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ function verifyProgram(service: ts.server.ProjectService, project: ts.server.Pro
442442
const getDefaultLibLocation = compilerHost.getDefaultLibLocation!;
443443
compilerHost.getDefaultLibLocation = () => ts.getNormalizedAbsolutePath(getDefaultLibLocation(), service.host.getCurrentDirectory());
444444
compilerHost.getDefaultLibFileName = options => ts.combinePaths(compilerHost.getDefaultLibLocation!(), ts.getDefaultLibFileName(options));
445+
compilerHost.trace = ts.noop; // We dont want to update host just because of trace
445446
const readFile = compilerHost.readFile;
446447
compilerHost.readFile = fileName => {
447448
const path = project.toPath(fileName);

0 commit comments

Comments
 (0)