Skip to content

[Feature request] expose initializationOptions for LSP #51

@matan-h

Description

@matan-h

Many LSPs, such as ty (config docs) uses the LSP option of initializationOptions to determine language-specific settings, like adding auto-import suggestions

Use case: I am building a super minimal python editor with ty LSP, and it would be nice if I could use

LspStdioConfig.start(
      executable: "ty",
      ....
      initializationOptions:{"completion": {"autoImport": false}}
)

Looking at the code

code_forge/lib/LSP/lsp.dart

Lines 103 to 105 in e653725

'initializationOptions': {
'highlight': {'enabled': true},
},

It seem to be already sending this, just without user ability to add more options.

Thank you for the awesome project,
matan-h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions