Skip to content

The Debug tab shows Debug port and Suspend for user-defined servers, which ignore them, and hides them for extension servers, which use them #2267

Done

Description

@lagergren

The Debug tab of a language server, on the settings page and in the LSP Consoles, shows Debug port and Suspend in the wrong cases:

  • User-defined servers: the tab shows the fields, but nothing reads them, since the user's own command starts the server.
  • Extension servers: the tab hides the fields. These are the servers whose plugin can use them, through JavaProcessCommandBuilder.

Where

  • Who shows them: LanguageServerView shows the fields only for user-defined servers. The line is configuration.setShowDebugPortAndSuspend(isUserDefined); (LanguageServerView.java:518).
  • Who reads them: only JavaProcessCommandBuilder does. It adds -agentlib:jdwp=… to the Java command of an extension server when its settings have a debug port. The developer guide describes this: the builder "adds additional debug flags if the settings of the language server myLanguageServerId defines a debug port".
  • Before 4b0b0f0 ("feat: contribute to the language server panel with extension", June 2025), LanguageServerView read and compared the debug port and suspend only for servers that weren't user-defined. The new panel configuration turned this around.
  • The docs: docs/images/LSPConsoleSettings.png and docs/images/LSPLanguageServerDetail.png still show the fields in the Debug tab of Qute, an extension server.

Effect

The developer of an extension server can no longer set a debug port from the UI, so JavaProcessCommandBuilder never adds the JDWP agent unless the setting is edited elsewhere. A user-defined server shows two fields that have no effect.

Suggested fix

Show the fields for extension servers, as before 4b0b0f0 (!isUserDefined), and hide them for user-defined servers. Check that saving and the "modified" check still handle both kinds.

Activity

  1. added
    bug
    on Nov 25, 2026
  2. added this to the 0.30.2 milestone on Nov 25, 2026
  3. added a commit that references this issue on Nov 26, 2026
    482fe33
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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions