Skip to content

IntelliJ 2026.3 adds its own "Language Servers" settings page next to LSP4IJ's, which confuses users #1920

Closed

Description

@muescha

Problem

Since IntelliJ IDEA 2026.3, Settings → Languages & Frameworks shows two entries named "Language Servers":

  1. LSP4IJ's page (LanguageServerListConfigurable, id LanguageServers), with "File operations timeout (ms)" and the "Add Language server" popup.
  2. A new page from the plugin "LSP Connection Manager" (com.intellij.lsp.ui, vendor JetBrains), which IntelliJ 2026.3 bundles. It registers a projectConfigurable with id lsp.servers, also under language, with the display name "Language Servers". On it you add a "New LSP Server" with a stdio/socket channel, an executable path, arguments, environment variables and file name patterns, plus a "More via plugins…" link.

The settings tree with both entries:

Two "Language Servers" entries in the settings tree

LSP4IJ's page:

LSP4IJ's Language Servers page

The JetBrains page:

The Language Servers page of LSP Connection Manager

Both show the same project icon with the same tooltip:

Project icon tooltip

Technically nothing clashes: the two pages have different ids. But users can't tell them apart:

  • Both entries have the same name and the same project icon, and the tree gives no hint which plugin owns which page.
  • Both pages do the same thing: they define a language server with a command and the files it handles. A user doesn't know which form to use, or why a server they added on one page doesn't show up on the other one.
  • Our documentation (UserGuide.md) points to Preferences | Languages & Frameworks | Language Servers, which is now ambiguous.

Second problem: the same files served twice

If a user configures the same server on both pages, or two servers whose mappings overlap, two LSP clients run for the same files: LSP4IJ's and the platform's. Nothing tells the user why. This becomes likely exactly because the two pages look the same: a user who doesn't find the server they added on one page adds it again on the other.

Claude Code reproduced this in IntelliJ IDEA 2026.3 RC with a tiny test server that logs every client and reports one diagnostic per client. The same server was configured for *.lsptest on both pages:

  • Two server processes started, one per client, and both received initialize and textDocument/didOpen for the same file. The clients identify themselves as IntelliJ IDEA 263.7307.112 (platform) and IntelliJ IDEA 2026.3 RC … (build IU-263.7307.112) (LSP4IJ).
  • The editor shows the same diagnostic twice on a one-line file:

The same diagnostic twice, once per client

Hovering the error shows both answers, one per client:

Hover with both diagnostics

ERROR probe diagnostic from JetBrains (client IntelliJ_IDEA_263.7307.112, pid 90572)
ERROR probe diagnostic from LSP4IJ (client IntelliJ_IDEA_2026.3_RC_IntelliJ_IDEA_(build_IU-263.7307.112), pid 90593)

With a real server, the same applies to completion items, hovers, code actions and formatting.

Proposal

1. Rename LSP4IJ's page. ✅ Done in #1925: the page is now named Language Servers (LSP4IJ).

For example:

  • Language Servers (LSP4IJ), which keeps it sorted next to the JetBrains page, or
  • LSP4IJ Language Servers

Only the bundle value language.servers in LanguageServerBundle.properties changes. The key is read in two places (plugin.xml and LanguageServerListConfigurable.getDisplayName()), and the page is opened by class (EditServerAction uses showSettingsDialog(project, LanguageServerListConfigurable.class, …)), so nothing that opens the page breaks. The id LanguageServers stays, so settings search and links keep working. The path in UserGuide.md needs updating.

2. Warn about overlapping mappings. When the JetBrains plugin is present, LSP4IJ could check whether a file is mapped on both sides and tell the user, for example:

  • Per file (precise): when a file is opened and LSP4IJ starts a server for it, also check whether a server on the JetBrains page is enabled and one of its file name patterns matches the file. If so, show an editor notification or a balloon: "This file is also handled by the language server 'X' from Settings | Languages & Frameworks | Language Servers (JetBrains). Disable one of them to avoid duplicate results." with a link to each page.
  • In the settings (early): on LSP4IJ's page, mark a server whose file name patterns or extensions also appear on the JetBrains page. The same executable path on both sides is a strong hint that it is the very same server.

How to read the JetBrains side, as Claude Code found by inspecting the 2026.3 jars:

  • The settings live in the project service com.intellij.platform.lsp.api.LspIntegrationSettings (implemented by LspIntegrationSettingsImpl), stored as component LspServerSettings in the workspace file ($WORKSPACE_FILE$, RoamingType.LOCAL).
  • Each server is an LspServerConfiguration with name, enabled, executablePath, arguments, filePatterns, communicationMode, and getFileMatchers() returning List<FileNameMatcher>.
  • But the server list isn't public API: getServers() is Kotlin-internal (getServers$intellij_lsp_ui_frontend). The public interface only has getPluginConfiguration(String).
  • Ways to read it anyway, in order of preference: ask JetBrains for a public read API; serialize the public getState() with XmlSerializer and read the filePatterns/executablePath from the XML; or call the internal getter by reflection. The last two can break in any release, so the check has to fail quietly.
  • LSP4IJ still builds against older platforms, so this needs an optional dependency on com.intellij.lsp.ui with its own config file, and it only applies from 2026.3 on.

On the LSP4IJ side, LanguageServersRegistry.findLanguageServerDefinitionFor(language, fileType, fileName) already says which LSP4IJ servers match a file, so the per-file check only needs the JetBrains side.

3. Possibly later: the JetBrains page has a "More via plugins…" link and an extension point LspIntegrationSettingsProvider that lets plugins list their servers there. It might be worth looking at whether LSP4IJ servers should show up there, so users find them from both pages. That's a bigger question and not needed for 1 and 2.

How this was checked

Claude Code checked this on IntelliJ IDEA 2026.3 RC (build 263.7307.112):

  • The bundled plugin plugins/lsp-ui-plugin ("LSP Connection Manager", com.intellij.lsp.ui) contains the projectConfigurable lsp.servers with parentId="language", and its LspUiBundle.properties has lsp.settings.display.name=Language Servers, New LSP Server and More via plugins…, which match the second page exactly.
  • IntelliJ IDEA 2026.1.4 doesn't bundle this plugin, so the duplicate first appears in 2026.3.
  • The settings classes and the @State annotation were read with javap from the 2026.3 jars.
  • Test runs: separate sandbox instances of the 2026.3 RC, each with its own config and system folder and with LSP4IJ 0.30.0-SNAPSHOT and LSP Connection Manager 263.7307.200 installed. The test server is a small Python stdio server: it logs every message with the client's clientInfo and answers didOpen with one diagnostic naming its client. LSP4IJ's server was configured through UserDefinedLanguageServerSettings.xml, the platform's through the LspServerSettings component in .idea/workspace.xml, both for *.lsptest.
    • With the plugin enabled, both clients started and both opened the file, and get_file_problems and the editor report the diagnostic twice (see above).
    • With com.intellij.lsp.ui in disabled_plugins.txt, the IDE log says the plugin "is marked disabled" and loads only LSP4IJ. Only LSP4IJ's client started, and it opened the file normally. So disabling "LSP Connection Manager" is a workaround for users who don't need it. Its settings page isn't registered then either, because the plugin isn't loaded; that wasn't checked by looking at the settings dialog.
  • Side note, not part of this issue: in the very first run, LSP4IJ started its server and got the initialize answer, but sent no didOpen for the file that was already open at startup; a file opened later was handled normally. A second run with the same setup sent didOpen at once. It happened once in three runs and wasn't investigated further.

Activity

  1. muescha commented on Nov 10, 2026

    @muescha
    ContributorAuthor

    Confirmed: with #1925 the menu is renamed, the settings page now shows as Language Servers (LSP4IJ). I've struck through proposal 1 in the description.

    Still open: 2. Warn about overlapping mappings, i.e. the double check whether LSP4IJ's mappings and the mappings on the JetBrains "Language Servers" page cover the same files.

  2. muescha commented on Nov 10, 2026

    @muescha
    ContributorAuthor

    Closing this one: the confusing name is fixed by #1925 (the page is now "Language Servers (LSP4IJ)"). The remaining part, warning when LSP4IJ and IntelliJ's own Language Servers page serve the same files, continues in #1933.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions