LSPClientConfig

data class LSPClientConfig(val rootUri: String? = null, val workspaceFolders: List<WorkspaceFolder>? = null, val clientInfo: InitializeParamsClientInfo? = DEFAULT_CLIENT_INFO, val capabilities: ClientCapabilities = ClientCapabilities(), val initializationOptions: LSPAny? = null, val createWorkspace: (LSPClient) -> Workspace = { client -> Workspace(client) })

Configuration for an LSPClient.

Mirrors the shape of upstream @codemirror/lsp-client's LSPClientConfig, but omits the transport-level options (the JSON-RPC connection is replaced by a directly-provided LanguageServer, see LSPClient).

Parameters

rootUri

The root URI of the workspace, sent during initialize.

workspaceFolders

The workspace folders to advertise to the server.

clientInfo

Optional client name/version reported to the server.

capabilities

The ClientCapabilities advertised during initialize.

initializationOptions

Optional server-specific initialization options.

createWorkspace

Factory used to build the Workspace managed by the client. Defaults to a single-file workspace.

Constructors

Link copied to clipboard
constructor(rootUri: String? = null, workspaceFolders: List<WorkspaceFolder>? = null, clientInfo: InitializeParamsClientInfo? = DEFAULT_CLIENT_INFO, capabilities: ClientCapabilities = ClientCapabilities(), initializationOptions: LSPAny? = null, createWorkspace: (LSPClient) -> Workspace = { client -> Workspace(client) })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val capabilities: ClientCapabilities
Link copied to clipboard
val clientInfo: InitializeParamsClientInfo?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val workspaceFolders: List<WorkspaceFolder>?