Skip to content

LSP Consoles: show state and connection in the tree #1952

Open

Description

@muescha

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

Status: most of suggestion A is done in #2000 (0.30.2), the server info tooltip in #1996 (0.30.0). What is still open is listed below under Still open after #2000.

Summary

The LSP Consoles tree shows little about the connection:

How the Services tool window does it

IntelliJ's Services tool window shows the same kind of thing (screenshots from IntelliJ IDEA 2026.3 RC; see also the IntelliJ IDEA help on the Services tool window and Docker containers):

  • IntelliJ's own MCP server lists each connected client, e.g. claude-code (HTTP Stream) 2.1.317: the name, the transport in parentheses, and the version in grey; on the right a Session tab with the client, version, transport and duration, and a Tool Calls tab. That's close to what a language server connection could show, and the grey version fits Display server info when hovering over server node in LSP consoles view #386:

    The Services tool window with two MCP client sessions, "claude-code (HTTP Stream) 2.1.317" selected, and its Session tab: client, version, transport HTTP Stream, duration

  • a Docker container sits in a tree Docker → Containers → container and shows its state in the icon, a green dot when it runs and an empty square when it's stopped, without a status text; after its name, it can show the run configuration that started it; stopped containers can be hidden with the view options. Its ports aren't in the tree, but in a Dashboard tab on the right, with a header (name, short id, Restart, Stop) above its environment variables, ports and volumes:

    The Services tool window with a running and a stopped Docker container, and the Dashboard of the running one with Restart, Stop and the ports 0.0.0.0:6010 and :::6010

  • a Spring Boot app shows as PetClinicDemoApplication [devtools] :8080/: the name in bold, extra information in grey, and the port as a link:

    The Services tool window with a running Spring Boot app shown as "PetClinicDemoApplication [devtools] :8080/", next to Docker and the MCP sessions

Suggestion A, a small change: state and connection in the tree

Only how the two tree nodes are drawn changes, plus a small method on StreamConnectionProvider; the LSP Consoles stay where and how they are.

▾ ✓ Demo LSP (attach)                 started · 127.0.0.1:6010
    ✓ started                          attach to 127.0.0.1:6010
▾ ✓ CSS Language Server               started · port 52114
    ✓ started pid:4711                 socket, it connects to port 52114
▾ ✓ TypeScript Language Server        started
    ✓ started pid:4712                 stdio
▸ ⊘ ABC                               disabled after 21 attempts

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

Mockup of suggestion A: the LSP Consoles tree with the state and the connection in grey after each node, a disabled server with the reason and an "Enable and start" link, and a tooltip with command, transport, start time and last error

And without the markings, as it would look:

Mockup of suggestion A without markings: the LSP Consoles tree with state and connection in grey, a disabled server with "Enable and start", and the tooltip

This goes well with #386 (done in #1996), which shows the server's serverInfo (name and version) as a tooltip on the server node; there, a label like Zig: zls/0.13.0 was found too long, so the suffix here would only carry the state and the connection, not the version.

A small method on StreamConnectionProvider, such as getConnectionDescription(), returning null for stdio and e.g. "attach to 127.0.0.1:6010" for a socket, would give the tree that text without parsing toString(). (done in #2000 as StreamConnectionProvider.getConnectionDescription())

Still open after #2000

Suggestion B, a bigger change: the language servers in the Services tool window

Docker isn't a tool window of its own, but contributes to the Services tool window (com.intellij.serviceViewContributor), as run configurations and databases do. The language servers could show there too:

  • on the left the tree, server → process; on the right today's tabs (Traces, Logs, Debug, …), plus a dashboard with the transport, host and port, pid, and Restart and Stop;
  • start, stop and restart as actions on the nodes, as for containers;
  • everything that runs in one place.

As a mockup (not a screenshot), next to Spring Boot, Docker and an MCP session as they are today:

Mockup of suggestion B: a "Language Servers" node in the Services tool window, each server with its transport in grey and host and port as a link, and a Dashboard tab with Restart, Stop, state, transport, host and port, process and server info

That's a lot of rework, and users would find the LSP Consoles somewhere else, so I'm only asking whether it's a direction you'd like.

How this was checked

Claude Code only read the code of the tree at b4b23c2; nothing of this is built or tried. The screenshots are from IntelliJ IDEA 2026.3 RC; the Spring Boot details ([devtools], the port) need IntelliJ IDEA Ultimate, without it the node only shows the name.

Would A be welcome?

Activity

  1. added this to the 0.31.0 milestone on Nov 17, 2026
  2. lagergren commented on Nov 17, 2026

    @lagergren
    Collaborator

    A first step is in 0.30.0: #1996 (for #386) shows the name and version that a language server reports as a tooltip when you hover over its node. The rest of this issue, the state in the icon and the transport, host and port of a connection, is for 0.31.0.

  3. muescha commented on Nov 19, 2026

    @muescha
    ContributorAuthor

    Showing in the tree when a server without files will stop, e.g. idle, stops at 20:15, is in #2025, from the discussion in #1809.

  4. modified the milestones: 0.31.0, 0.30.2 on Nov 20, 2026
  5. lagergren commented on Nov 20, 2026

    @lagergren
    Collaborator

    #2000, by @sohamsakhare76-ai, is in 0.30.2. It does most of suggestion A:

    • a server node shows the state of its instances in grey while collapsed ([started], [1/2 started], [crashed], [disabled]), and its tooltip shows the status, the instances, the name and version that the server reports, and the last error;
    • a process node shows its connection in grey ([stdio], [connect to 127.0.0.1:6010], [accept on port 52114]), and its tooltip shows the connection, the pid, the command and the last error;
    • StreamConnectionProvider.getConnectionDescription() gives that text; a provider of a plugin can return its own, and nothing is shown when it returns null.

    Two parts of suggestion A are still to do, so this issue stays open for them:

  6. modified the milestones: 0.30.2, 0.30.3 on Nov 25, 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

    enhancementlsp-console

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions