mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Actually use cached semantic diagnostics
This commit is contained in:
parent
7e780c0a1a
commit
9bea0dbdc2
@ -238,7 +238,7 @@ namespace ts {
|
||||
const cachedDiagnostics = semanticDiagnosticsPerFile.get(path);
|
||||
// Report the semantic diagnostics from the cache if we already have those diagnostics present
|
||||
if (cachedDiagnostics) {
|
||||
cachedDiagnostics;
|
||||
return cachedDiagnostics;
|
||||
}
|
||||
|
||||
// Diagnostics werent cached, get them from program, and cache the result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user