Skip to content

Feature Request: Support for Language Server Protocol (LSP) #909

@ZacheryGlass

Description

@ZacheryGlass

Feature Request

Add an lsp_config parameter (or equivalent) to SubprocessConfig so that applications using the SDK can specify a project-specific LSP server configuration file at an arbitrary path.

Current Behavior

LSP config paths are hardcoded in the CLI:

  • User-level: ~/.copilot/lsp-config.json
  • Project-level: .github/lsp.json (relative to the CLI subprocess's cwd)

There is no way to pass a custom LSP config path through the SDK. SubprocessConfig.cli_args cannot help here because the CLI has no --lsp-config flag.

Desired Behavior

from copilot.types import SubprocessConfig

config = SubprocessConfig(
    lsp_config="/path/to/my/lsp-config.json"
)
client = CopilotClient(config)

Notes

The LSP config file path would only need to be passed at client construction time (before start() is called), so a SubprocessConfig field is the natural place for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions