-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp: limit diagnostics concurrency
Diagnostics runs cannot be canceled until they finish a package. If a user has a very expensive package, we may stack up diagnostics runs to the point where the machine runs out of memory. We see hints of this in various issues. To avoid that, only allow one diagnostics run at a time. We can change the limit later if we want. Updates golang/go#37223. Change-Id: Icd0eec4da936153306cf0a1f7175ae2b4b265272 Reviewed-on: https://go-review.googlesource.com/c/tools/+/219958 Reviewed-by: Rebecca Stambler <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
9 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
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