Skip to content

feat: the Language Servers page has the tabs Servers and Configuration, which has the file operations timeout and the GitHub token - #2390

Merged
lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:feat/settings-general-page
Dec 1, 2026

Conversation

@lagergren

@lagergren lagergren commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #2383.

Languages & Frameworks | Language Servers (LSP4IJ) opened with the file operations timeout and the GitHub token at the top, above the list of language servers, which is what the page is for. As @angelozerr suggested in #2383, the page now has two tabs.

What changes

  • The tabs: the Language Servers (LSP4IJ) page has two tabs:
    • Servers: the list of language servers, as the page showed it;
    • Configuration: the file operations timeout, and the GitHub token of the installers, with its field and comment as before, kept in the Password Safe.
  • The code: LanguageServerListConfigurable builds the tabs. The Configuration tab is LanguageServersConfigurationTab, and the page's isModified, apply, reset and disposeUIResources include it.
  • The installer's rate-limit message names the new place of the token: Settings | Languages & Frameworks | Language Servers (LSP4IJ), tab Configuration. So does docs/Installer.md.
  • Screenshot: docs/images/user-defined-ls/GitHubTokenSetting.png still shows the token at the top of the old page. It needs a new screenshot of the Configuration tab, which I can't take here.
  • Earlier version: the first version of this PR put the settings on a child page, General. The second commit replaces it with the tabs.

Behaviour changes

Before After
The file operations timeout and the GitHub token were at the top of Language Servers (LSP4IJ), above the list of language servers The page has the tabs Servers, with the list, and Configuration, with these settings

Tests

  • LanguageServersConfigurationTabTest:
    • the page has the tabs Servers and Configuration, and only Configuration has the timeout;
    • a change of the timeout on the Configuration tab makes the page modified, Apply stores it, and the page is then no longer modified.
  • GitHubTokenFieldTest: it still covers the token field, which moved unchanged.
  • Messages: the GitHub download tests that spell out the message expect the new path.
  • Settings and installation tests: 353 pass.

…e General, below Language Servers (LSP4IJ), whose page starts with the list of language servers

Fixes redhat-developer#2383
@lagergren lagergren added this to the 0.30.3 milestone Dec 1, 2026
@lagergren lagergren added enhancement New feature or request UI labels Dec 1, 2026
@lagergren
lagergren requested a review from angelozerr December 1, 2026 10:39
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • The Language Servers settings page now has separate Servers and Configuration tabs. Configure the file-operations timeout and GitHub token in the Configuration tab.
  • Documentation
    • Updated guidance for finding the GitHub token setting to point to the Configuration tab.

The Language Servers settings page now separates the server list from global settings in a Configuration tab. The file-operations timeout and GitHub token controls are managed by that tab. Token-setting guidance now identifies the Configuration tab.

Changes: Language Servers settings

Layer / File(s) Summary
Add the Configuration tab
src/main/java/com/redhat/devtools/lsp4ij/settings/LanguageServerListConfigurable.java, src/main/java/com/redhat/devtools/lsp4ij/settings/LanguageServersConfigurationTab.java, src/main/resources/messages/LanguageServerBundle.properties, src/main/resources/META-INF/plugin.xml, src/test/java/com/redhat/devtools/lsp4ij/settings/LanguageServersConfigurationTabTest.java
The settings page has separate Servers and Configuration tabs. The Configuration tab manages the timeout and GitHub token settings. Modification checks, apply, reset, and disposal delegate to it. Tests check tab placement and timeout updates.
Update token setting references
src/main/java/com/redhat/devtools/lsp4ij/installation/download/GitHubAssetFetcher.java, src/test/java/com/redhat/devtools/lsp4ij/installation/download/GitHubAssetFetcherTest.java, docs/Installer.md
The token setting path in fetcher messages, tests, and installer documentation now names the Configuration tab.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Refactor

Merge Risk: Minimal · up to c6e60

This change moves the file-operations timeout and GitHub token settings into a Configuration tab on the Language Servers settings page and updates the guidance to name that tab. No merge-blocking risk was identified. The documentation screenshot is still outdated, which the author has noted.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Language Servers page gets Servers and Configuration tabs, with the file operations timeout and GitHub token on the Configuration tab. It matches the changeset and…
Description check Passed The description states the problem (settings shown above the server list, per issue #2383), the two-tab change, the code and documentation updates, the rate-limit message change, the stale screenshot …
Linked Issues check Passed [#2383] The issue asks to move the file operations timeout and the GitHub token out of the top of the Language Servers settings page, so that the server list comes first. The issue suggests a child pa…
Out of Scope Changes check Passed All changed files relate to the moved settings. LanguageServerListConfigurable removes the inline controls and delegates to the new tab. LanguageServersConfigurationTab holds the moved controls. Langu…
Full details: Title check

Explanation

The title names the main change: the Language Servers page gets Servers and Configuration tabs, with the file operations timeout and GitHub token on the Configuration tab. It matches the changeset and the PR objectives. The title is long (130 characters), but it is still specific and accurate.

Full details: Description check

Explanation

The description states the problem (settings shown above the server list, per issue #2383), the two-tab change, the code and documentation updates, the rate-limit message change, the stale screenshot that still needs replacement, and the test coverage. It is directly related to the changeset.

Full details: Linked Issues check

Explanation

[#2383] The issue asks to move the file operations timeout and the GitHub token out of the top of the Language Servers settings page, so that the server list comes first. The issue suggests a child page, and the author proposes tabs. The reviewed summary shows that LanguageServerListConfigurable now builds two tabs: Servers (the server list) and Configuration (LanguageServersConfigurationTab). The timeout spinner and the GitHub token field are placed only on the Configuration tab. The tab is wired into isModified, apply, reset and disposeUIResources. The new LanguageServersConfigurationTabTest checks tab placement and the timeout apply and modified-state behaviour. GitHubTokenFieldTest covers the moved token field. The issue does not require a child page specifically, and the tab approach meets the stated concern. The docs screenshot update is a non-coding task and does not affect this verdict.

Full details: Out of Scope Changes check

Explanation

All changed files relate to the moved settings. LanguageServerListConfigurable removes the inline controls and delegates to the new tab. LanguageServersConfigurationTab holds the moved controls. LanguageServerBundle.properties adds the tab labels. GitHubAssetFetcher.java and its test update the rate-limit and invalid-token messages to name the Configuration tab. docs/Installer.md is updated to match. plugin.xml gets a comment only, with no runtime change, and references #2383. LanguageServersConfigurationTabTest covers the new tab. No change in the summary is unrelated to #2383.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 511ccdeb-d247-4565-a7d6-adbf95e8cac6
Commits

Reviewing files that changed from the base of the PR and between 89d31ea and c6e6010.

Files selected for processing: 8

  • docs/Installer.md
  • src/main/java/com/redhat/devtools/lsp4ij/installation/download/GitHubAssetFetcher.java
  • src/main/java/com/redhat/devtools/lsp4ij/settings/LanguageServerListConfigurable.java
  • src/main/java/com/redhat/devtools/lsp4ij/settings/LanguageServersConfigurationTab.java
  • src/main/resources/META-INF/plugin.xml
  • src/main/resources/messages/LanguageServerBundle.properties
  • src/test/java/com/redhat/devtools/lsp4ij/installation/download/GitHubAssetFetcherTest.java
  • src/test/java/com/redhat/devtools/lsp4ij/settings/LanguageServersConfigurationTabTest.java

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.26087% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.12%. Comparing base (89d31ea) to head (c6e6010).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...p4ij/settings/LanguageServersConfigurationTab.java 72.97% 3 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2390      +/-   ##
==========================================
+ Coverage   59.80%   60.12%   +0.32%     
==========================================
  Files         859      861       +2     
  Lines       37602    37736     +134     
  Branches     7792     7817      +25     
==========================================
+ Hits        22488    22690     +202     
+ Misses      12031    11943      -88     
- Partials     3083     3103      +20     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…n, which has the file operations timeout and the GitHub token

As Angelo suggested in redhat-developer#2383, the settings for all the language servers
are on a tab of the page, next to the list of language servers, instead
of a page General below it. The installer's rate-limit message and the
docs name the tab.
@lagergren lagergren changed the title feat: the file operations timeout and the GitHub token are on the page General, below Language Servers (LSP4IJ), whose page starts with the list of language servers feat: the Language Servers page has the tabs Servers and Configuration, which has the file operations timeout and the GitHub token Dec 1, 2026
@lagergren

Copy link
Copy Markdown
Collaborator Author

@angelozerr Done: the Language Servers (LSP4IJ) page now has the tabs Servers (the list) and Configuration (the file operations timeout and the GitHub token), as you suggested in #2383. The separate General page is gone, and the rate-limit message and the docs name the tab.

@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren
lagergren merged commit ff56835 into redhat-developer:main Dec 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File operations / Github settings vs server list

1 participant