Repository navigation
fix: the LSP console's server panel keeps its header readable at large fonts and narrow widths, and scrolls when it doesn't fit - #2211
Conversation
…e fonts and narrow widths, and scrolls when it doesn't fit The page of a language server which is not user-defined, in the LSP console and in the settings, named the language server in a TitledBorder. At a large IDE font its tabs could overlap the title, and in a narrow LSP console the title was clipped. Its tabs of fields didn't scroll, so a field that didn't fit could only be reached by making the whole window larger. The header is now a JBLabel above the tabs, in the font of the IDE, so it takes the height that font needs. It takes the width of the page and shortens the name with an ellipsis when the page is narrower than the name, with the whole name in its tooltip; its minimum width is 0, so the name doesn't keep the LSP console's splitter, which honours minimum sizes, from making the page narrower. The tabs of fields, Server and Debug, are now in a borderless scroll pane (ScrollPaneFactory), so they scroll when they don't fit. A tab whose content fills it, the Configuration and Installer tabs with their JSON editors and the Mappings tab with its tables, is not put in one: a JSON editor scrolls itself, and a scroll pane around it breaks its keyboard navigation (redhat-developer#655). Fixes redhat-developer#374 Fixes redhat-developer#324
|
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 23 minutes. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2211 +/- ##
==========================================
+ Coverage 54.59% 54.65% +0.05%
==========================================
Files 834 834
Lines 35385 35398 +13
Branches 7300 7300
==========================================
+ Hits 19320 19346 +26
+ Misses 13223 13211 -12
+ Partials 2842 2841 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…to be the current one before it sets a value of that stop (#2216) ## What `DAPSetExpressionSessionTest.testSetValueOfAVariableOfAnEarlierStopReportsItAndSendsNothing` failed on the Linux 2026.3 job of #2211, which doesn't touch DAP. Its message was "The value is set": Set Value of a variable of the second stop answered with an error. `stopAgain()` waited for a new suspend context, and for a `DAPStackFrame` to be the current frame. The earlier stop's frame is one too, and the session takes the new suspend context before it makes a frame of it the current one. So the wait could end in between. `local("answer")` then took the variable of the earlier stop, which Set Value rightly reports as out of date. ## Change `stopAgain()` also waits until the current frame is a different object from the one before the stop. A stop makes new frames, also for a frame whose id and function are the same. The tests that use a value of the earlier stop, `DAPJumpToDeclarationSessionTest` and `DAPJumpToValueSourceSessionTest`, don't use the current frame, so they don't have this race. Only the test changes. ## Tests `DAPSetExpressionSessionTest` passes headless on IC 2024.2, 2025.3 and IU 2026.3: 19 tests each, also in three runs on 2026.3.
|
Combined, unchanged, with the other small fixes into #2219, one commit each, so that they take one review instead of six. |
Fixes #374
Fixes #324
What
The language server panel of the LSP console, which the settings page and the New Language Server dialog also use, named the server in a
TitledBorder. At larger font sizes it overlapped the tabs (#374), and in a narrow console its title was clipped (#324). The tabs didn't scroll either, so their fields were cut off when they didn't fit.Change
LanguageServerView):JBLabelabove the tabs replaces the titled border, in the IDE's font, with the full name in its tooltip.LanguageServerPanel.addTab):Not in this PR:
Tests
New
LanguageServerViewLayoutTest(4 tests):Red-green: all 4 tests fail without the change and pass with it. An off-screen render at 700 px and 260 px shows the header and its ellipsis.
The new test passes headless on IC 2024.2, 2025.3 and IU 2026.3. The
settings.*andconsole.*tests pass on all three platforms: 139 each.Behaviour change