Repository navigation
Description
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
-
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.
-
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.
-
Cut off: when the tool window is small, the settings panel in the LSP Consoles is cut off and can't be scrolled.
-
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.
-
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). -
The state is hard to see: whether a server is connected, disabled or crashed.
Suggestion
-
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
serverInfoname 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):
So does a Docker container's Dashboard: its environment variables, ports and volumes below a header with Restart and Stop:
-
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, ininitialize); - 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.
- the trace level switches live; LSP4IJ writes the traces itself, and could tell the server with
-
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:
CSS Language Server ● started · socket · port 52114 · pid 4711 [Edit… ↗] [↻ Restart] [■ Stop] [⏸ Pause] [▶ Restart with Debug…] Trace: [verbose ▾] (only this run) ─────────────────────────────────────────────────────────────────────────── Traces | Logs | InfoThe same as a mockup (not a screenshot; dashed orange marks what's new):
Two other ways to arrange the same, also mockups:
-
an Info tab first, with the state, the buttons and the setup, and Traces and Logs as today:
-
the actions as icons in the tab bar, as the Services tool window does for a Spring Boot app (see LSP Consoles: show state and connection in the tree #1952 for the screenshot):
-
-
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:
-
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
muescha commentedon Nov 19, 2026
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.