Skip to content

LSP Consoles and settings: setup in the settings, runtime in the consoles #1953

Open

Description

@muescha

A follow-up of #1870, collected in #1943.

While checking how the validation of the socket transport (#1870) shows its errors, I noticed that the New Language Server dialog, the settings page and the LSP Consoles each show them differently. Looking closer, the editable settings in the LSP Consoles seem more of a source of confusion than a help. Without them, the user experience gets simpler without losing anything: the setup is always changed on the settings page, and everything in the LSP Consoles is about the running server. The same goes for the actions: the ones about the setup belong on the settings page, and the LSP Consoles keep those about the running server, as buttons rather than only in a context menu.

Today

The same language server shows in three places:

New Language Server Settings › Language Servers LSP Consoles
Fields LanguageServerPanel the same panel the same panel, with Apply and Reset on the left (configureDetailToolbar)
Validation while typing, red outlines on Apply, a list at the bottom as on the settings page
Actions – only add and remove (createActions) a context menu with everything (LanguageServerExplorer)

The LSP Consoles' context menu has:

  • on a server: Delete Server, Edit Server, Export Server, New Language Server, Install if Needed, Reinstall;
  • on a connection (the process below the server): Stop and Pause, or Restart, Install if Needed, Reinstall, Copy Start Command;
  • with nothing selected: New Language Server, Export (all).

The settings page only has add and remove; Export, Install if Needed, Reinstall and Copy Start Command are only in the LSP Consoles, and there is no Import action of its own.

Problems

  1. Three places for the same thing: it isn't clear where to change what. The settings take most of the room in the LSP Consoles, although they're rarely changed there.

  2. Running instance or server? Below a running connection, it isn't clear whether a change only affects that running instance or the server as a whole. It's the latter: Apply there does the same as on the settings page, and saves the definition for good, but nothing on the panel below the running connection says so.

  3. Cut off: when the tool window is small, the settings panel in the LSP Consoles is cut off and can't be scrolled.

    The LSP Consoles with the settings of a language server cut off after the Command field, without a scroll bar

  4. Setup actions in the wrong place: Export Server, Install if Needed, Reinstall and Copy Start Command are only in the LSP Consoles' context menu. They have nothing to do with the running server, and you look for them on the settings page, not in a runtime info and debugging view, so they're hard to find there.

  5. Errors look different: red outlines in the dialog, a list on Apply on the settings page and in the console (that's its own issue, Validation: ${port} with stdio, and errors shown differently #1950; only mentioned here).

  6. The state is hard to see: whether a server is connected, disabled or crashed.

Suggestion

  1. One place to change the setup: the settings page. The LSP Consoles get a read-only info panel instead of the editable fields, with the command, transport, host and port, the mappings in short, and the trace level, and what the server reports about itself, its serverInfo name and version (see Display server info when hovering over server node in LSP consoles view #386, which shows it as a tooltip), plus an Edit… button that opens the settings page for this server, as Edit Server does today. Apply and Reset go away there, and so does the scrolling problem. Changes are then only made on the settings page, where it's clear that they apply to the server as a whole.

    The Services tool window does the same for a connection to IntelliJ's own MCP server: a read-only Session tab with the client, version, transport and duration (IntelliJ IDEA 2026.3 RC):

    The Services tool window with an MCP client session and its read-only Session tab: client, version, transport HTTP Stream, duration

    So does a Docker container's Dashboard: its environment variables, ports and volumes below a header with Restart and Stop:

    A running Docker container's Dashboard in the Services tool window, with Restart and Stop in its header, and its environment variables and ports below

  2. Debugging settings for this run only: the trace level and the debug port are what you change while working. In the LSP Consoles they could apply to the running instance only, without being saved, so that only what's on the settings page survives a restart:

    • the trace level switches live; LSP4IJ writes the traces itself, and could tell the server with $/setTrace, which it doesn't send yet (the trace only goes out once, in initialize);
    • the debug port and suspend only work when the process starts (JavaProcessCommandBuilder); for the running instance, that means restarting it with that port, and the next normal restart forgets it again. So they'd be a Restart with Debug… action, asking for the port, for one start, like Run and Debug for run configurations;
    • a value that differs from the saved one says so, e.g. "Trace: verbose (only this run, saved: off)", with a link to save it.

    That's what I'd suggest: the trace live in the LSP Consoles, debugging as a restart action of its own, and everything that should last only on the settings page. The alternatives would be to change them only on the settings page as well, or to keep them in the console, saved, but labelled as applying to the server.

  3. Only runtime actions in the LSP Consoles, as buttons, in a header like the one of a Docker container's Dashboard in the Services tool window, with Restart and Stop next to the name (see the screenshot below), or as icons above the Traces and Logs tabs; the tree's context menu keeps only the same runtime actions, and Edit… is the only way to the setup, opening the settings page for this server:

    A running Docker container's Dashboard in the Services tool window, with Restart and Stop in its header

    CSS Language Server   ● started · socket · port 52114 · pid 4711                    [Edit… ↗]
    [↻ Restart] [■ Stop] [⏸ Pause] [▶ Restart with Debug…]   Trace: [verbose ▾] (only this run)
    ───────────────────────────────────────────────────────────────────────────
    Traces | Logs | Info
    

    The same as a mockup (not a screenshot; dashed orange marks what's new):

    Mockup of the LSP Consoles with a runtime header (state, transport, port, pid, Edit… link, Restart, Stop, Pause, Restart with Debug…, trace level for this run only) and a read-only Info tab with command, transport, mappings, server info and start time

    Two other ways to arrange the same, also mockups:

  4. The setup actions on the settings page: the context menu and toolbar of the list on the settings page get New, Edit, Delete, Export Server (for one or more selected servers), Import, Install if Needed, Reinstall and Copy Start Command, and the LSP Consoles lose them. For a while, they could stay in the LSP Consoles and point to the settings page, so nobody misses them all of a sudden. Each action and where it belongs:

    Action About Where
    New Language Server, Edit Server, Delete Server setup settings page; the LSP Consoles only have an Edit… button that opens it
    Export Server, Export (all), Import (no action of its own today) setup settings page
    Install if Needed, Reinstall setup settings page
    Copy Start Command setup settings page; the command with the port the running server actually got (with Auto) could show in the info panel as well
    Restart, Stop, Pause the running server LSP Consoles
    trace level, Restart with Debug… the running server, this run only LSP Consoles

    As a mockup (not a screenshot), working with the setup on the settings page: the actions in the list's toolbar and in its context menu, with the icons and texts they have in the LSP Consoles today; only Import… is new:

    Mockup of the Language Servers settings page: the list's toolbar with add, remove, edit, export, import, install and copy, and a context menu with New Language Server, Edit Server, Delete Server, Export Server, Import…, Install if Needed, Reinstall and Copy Start Command, with the icons and texts the LSP Consoles use today

  5. The same errors everywhere (red outlines while typing, and a list of all problems, see Validation: ${port} with stdio, and errors shown differently #1950 for the validation), and the state in colour: green when connected, red when disabled or crashed, e.g. as an overlay on the icon as Docker does, and in the info panel.

How this was checked

The cut-off settings panel was seen in IntelliJ IDEA 2026.3 RC with LSP4IJ 0.30.0-SNAPSHOT, as in the screenshot; in the code, the panel isn't in a scroll pane. The rest Claude Code found by reading the code at b4b23c2; it hasn't been tried in the IDE.

Would you like a change in that direction? It could go in small steps, starting with the setup actions on the settings page, which changes no existing behaviour, and then moving them out of the LSP Consoles.

Activity

  1. muescha commented on Nov 19, 2026

    @muescha
    ContributorAuthor

    Showing in the read-only info panel when a server without files will stop, with the time and the lastDocumentDisconnectedTimeout, is in #2025, from the discussion in #1809.

  2. added this to the Backlog milestone on Nov 30, 2026
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

    UIenhancementlsp-console

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions