Skip to content

Commit 9bea0db

Browse files
committed
Actually use cached semantic diagnostics
1 parent 7e780c0 commit 9bea0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ namespace ts {
238238
const cachedDiagnostics = semanticDiagnosticsPerFile.get(path);
239239
// Report the semantic diagnostics from the cache if we already have those diagnostics present
240240
if (cachedDiagnostics) {
241-
cachedDiagnostics;
241+
return cachedDiagnostics;
242242
}
243243

244244
// Diagnostics werent cached, get them from program, and cache the result

0 commit comments

Comments
 (0)