Skip to content

Commit 4310873

Browse files
committed
- fix for wrong this
#333
1 parent 01272d3 commit 4310873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tscache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export class TsCache
264264
if (this.ambientTypesDirty)
265265
this.context.info(yellow("ambient types changed, redoing all semantic diagnostics"));
266266

267-
typeNames.forEach(this.typesCache.touch, this);
267+
typeNames.forEach(this.typesCache.touch, this.typesCache);
268268
}
269269

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

0 commit comments

Comments
 (0)