Skip to content

LSP init options #1269

@rynoV

Description

@rynoV

Describe the feature or problem you'd like to solve

Support specifying init options for lsp servers

Proposed solution

Some servers like fsautocomplete need options to be passed in the initialize request before they do anything useful. This is how neovim sets up the fsautocomplete server with initOptions.

I'd like to be able to have config like:

    "fsharp": {
      "command": "fsautocomplete",
      "args": ["--adaptive-lsp-server-enabled"],
      "fileExtensions": {
        ".fs": "fsharp",
        ".fsx": "fsharp"
      },
+      "initOptions": {
+       "AutomaticWorkspaceInit": true
+      }
    }

and have these options passed with the initialize request to the server.

Example prompts or workflows

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions