Repository navigation
fix: avoid non-blocking read action on EDT during settings panel dispose - #1807
Merged
angelozerr merged 1 commit intoOct 31, 2026
Merged
angelozerr merged 1 commit into
angelozerr merged 1 commit into
Conversation
LanguageServerPanel.dispose() runs on the EDT and called resetJsonSchema(), which renamed the virtual file via LSPIJUtils.getFile() → runCancellableReadAction(). That uses ReadAction.nonBlocking().executeSynchronously() which is forbidden on the EDT per JetBrains threading rules. During dispose the virtual file is about to be garbage-collected, so renaming it is unnecessary. Extract releaseJsonSchemaIndex() that only frees the schema provider slot, and call that from dispose() instead. Fixes redhat-developer#1650 Signed-off-by: azerr <[email protected]>
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 9 minutes. View limit details
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1807 +/- ##
==========================================
+ Coverage 36.76% 36.91% +0.15%
==========================================
Files 783 783
Lines 29923 29926 +3
Branches 4534 5987 +1453
==========================================
+ Hits 11000 11046 +46
+ Misses 17012 16967 -45
- Partials 1911 1913 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LanguageServerPanel.dispose() runs on the EDT and called resetJsonSchema(), which renamed the virtual file via LSPIJUtils.getFile() → runCancellableReadAction(). That uses ReadAction.nonBlocking().executeSynchronously() which is forbidden on the EDT per JetBrains threading rules.
During dispose the virtual file is about to be garbage-collected, so renaming it is unnecessary. Extract releaseJsonSchemaIndex() that only frees the schema provider slot, and call that from dispose() instead.
Fixes #1650