Skip to content

A language server's configuration can only be global: a project can't have its own #2305

Backlog

Description

@lagergren

LanguageClientImpl.createSettings() (main a900e494, LanguageClientImpl.java:487-493) takes the configuration that
workspace/configuration and workspace/didChangeConfiguration send from GlobalLanguageServerSettings, the
application store. The project only resolves macros such as $PROJECT_DIR$ in that one text
(LanguageServerSettings.getLanguageServerConfiguration(project), LanguageServerSettings.java:347). So two open
projects that need different settings for the same server (another module path, build mode or library location) get
the same configuration, and a user can't set one for one project without changing it for every project.

A client can override createSettings() and keep its own project store, as we do for the Ecstasy server, but then the
server's settings page no longer shows what is sent, and LSP4IJ's listeners don't know when that store changes.

Proposal. An optional project-level configuration for a server, in its settings page, that overrides or is merged
over the global one; createSettings() returns the merged object and the project store's changes send
didChangeConfiguration as the global store's do. Servers without one behave as today.

Activity

  1. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions