Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9bea0db

Browse filesBrowse files
committed
Actually use cached semantic diagnostics
1 parent 7e780c0 commit 9bea0db
Copy full SHA for 9bea0db

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/builder.ts‎

Copy file name to clipboardExpand all lines: src/compiler/builder.ts
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.