Skip to content

Commit

Permalink
- fix for wrong this
Browse files Browse the repository at this point in the history
  • Loading branch information
ezolenko committed Jun 1, 2022
1 parent 01272d3 commit 4310873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tscache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class TsCache
if (this.ambientTypesDirty)
this.context.info(yellow("ambient types changed, redoing all semantic diagnostics"));

typeNames.forEach(this.typesCache.touch, this);
typeNames.forEach(this.typesCache.touch, this.typesCache);
}

private getDiagnostics(type: string, cache: ICache<IDiagnostics[]>, id: string, snapshot: tsTypes.IScriptSnapshot, check: () => tsTypes.Diagnostic[]): IDiagnostics[]
Expand Down

0 comments on commit 4310873

Please sign in to comment.