forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[code-completion] Disable diagnostics in @functionBuilder bodies
When performing code-completion inside the body of a @functionBuilder closure/function, set the flag to suppress diagnostics. This works around a big performance problem in some complex bodies that do not typecheck, which is typical during code-completion. A real-world example with SwitfUI went from ~50 seconds to 0.5. We do not disable diagnostics in general because the diagnostic paths provide falback types that are useful to code-completion. rdar://52356229
- Loading branch information
1 parent
7211a51
commit c6eade1
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters