Repository navigation
chore: delete the catch blocks kept for IntelliJ versions before 2024.2 - #2039
Merged
lagergren merged 1 commit intoNov 21, 2026
Conversation
`LSPServerSideOnTypeFormattingHelper` and `ServerInstallerBase` caught `ProcessCanceledException` before `CancellationException`, with the same code in both blocks, and a TODO to delete the first block once LSP4IJ needs IntelliJ 2024.2, where `ProcessCanceledException` extends `CancellationException`. LSP4IJ needs 2024.2 (`pluginSinceBuild=242`), so the `CancellationException` block now catches both, as before. `CompletableFutures` keeps its two blocks: there, a `ProcessCanceledException` is rethrown and a `CancellationException` is not. Test: the tests of on-type formatting and of the server installers pass (139 tests).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2039 +/- ##
==========================================
- Coverage 49.43% 49.42% -0.01%
==========================================
Files 813 813
Lines 33324 33319 -5
Branches 6848 5191 -1657
==========================================
- Hits 16473 16468 -5
Misses 14278 14278
Partials 2573 2573 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
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.
LSPServerSideOnTypeFormattingHelperandServerInstallerBasecaughtProcessCanceledExceptionbeforeCancellationException, with the samecode in both blocks, and a TODO to delete the first block once LSP4IJ
needs IntelliJ 2024.2, where
ProcessCanceledExceptionextendsCancellationException. LSP4IJ needs 2024.2 (pluginSinceBuild=242),so the
CancellationExceptionblock now catches both, as before.CompletableFutureskeeps its two blocks: there, aProcessCanceledExceptionis rethrown and aCancellationExceptionisnot.
Test: the tests of on-type formatting and of the server installers pass
(139 tests).