Actually use cached semantic diagnostics

This commit is contained in:
Sheetal Nandi 2017-10-18 15:28:20 -07:00
parent 7e780c0a1a
commit 9bea0dbdc2

View File

@ -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