Skip to content

Commit

Permalink
Dont write to host just because we enable traceResolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Oct 17, 2023
1 parent 1ba0953 commit d89c3a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/harness/incrementalUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ function verifyProgram(service: ts.server.ProjectService, project: ts.server.Pro
const getDefaultLibLocation = compilerHost.getDefaultLibLocation!;
compilerHost.getDefaultLibLocation = () => ts.getNormalizedAbsolutePath(getDefaultLibLocation(), service.host.getCurrentDirectory());
compilerHost.getDefaultLibFileName = options => ts.combinePaths(compilerHost.getDefaultLibLocation!(), ts.getDefaultLibFileName(options));
compilerHost.trace = ts.noop; // We dont want to update host just because of trace
const readFile = compilerHost.readFile;
compilerHost.readFile = fileName => {
const path = project.toPath(fileName);
Expand Down

0 comments on commit d89c3a2

Please sign in to comment.