Repository navigation
fix: say that there is nothing to check or install when the installer has no check or run - #2056
Merged
lagergren merged 1 commit intoNov 21, 2026
Conversation
… has no check or run The links of the Installer tab, Check Installation, Run Installation and Check / Run Installation, ran the check or run task of the installer if it had one, and otherwise did nothing; either way, they reported that the installation completed successfully. A run, with or without a check before it, needs a run task, and a check a check task: without it, the link now says in the console and in a warning that there is nothing to install, or to check, as the installer has no run, or no check.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2056 +/- ##
==========================================
+ Coverage 49.49% 49.56% +0.07%
==========================================
Files 813 813
Lines 33350 33365 +15
Branches 5195 6861 +1666
==========================================
+ Hits 16505 16538 +33
+ Misses 14272 14257 -15
+ Partials 2573 2570 -3 ☔ 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.
Fixes #1229.
The links of the Installer tab, Check Installation, Run Installation and Check / Run Installation, ran the
checkorruntask of the installer if it had one, and otherwise did nothing. Either way, they said that the installation completed successfully, so with an installer that has norun, Run Installation seemed to install the language server, as #1229 shows.A run, with or without a check before it, now needs a
runtask, and a check achecktask. Without it, the link says so in the console of the tab and in a warning, Nothing to install forname. The installer has norun., or Nothing to check …, and runs nothing. Check / Run Installation with arunand nocheckstill runs it. This covers the Installer tab of a language server and the one of a DAP debug session, which both go throughServerInstallerManager.install(String, InstallerContext).Not here:
HyperlinkLabel, which LSP4IJ uses for every link, doesn't render or handle a disabled state, so a disabled link would look and act as before.checkas installed, so that an installer with only arundoesn't run at each start.Test:
ServerInstallerManagerMissingTaskTestchecks which actions an installer withoutcheck, withoutrunor without either has a task for. It also checks that Run Installation and Check / Run Installation of an installer withoutrun, and Check Installation of one withoutcheck, give a warning that there is nothing to install or check. Without the change, the first and the last give the "completed successfully" notification and the second an error. It and the other installer tests pass (66 tests).