LSPPlugin

The ViewPlugin that ties an LSPClient to a single editor session for a given file URI and language id.

Mirrors upstream @codemirror/lsp-client's LSPPlugin. On creation it registers the file with the client's Workspace and ensures the client is initialized; on destroy it unregisters the file. Feature behavior (sending document changes, requesting completions/hover/diagnostics, etc.) is wired in by later feature issues.

Parameters

session

The editor session this plugin is attached to.

client

The LSP client to communicate with.

uri

The document URI for this editor's file.

languageId

The LSP language identifier for this file.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The WorkspaceFile this plugin manages within the client's workspace.

Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope

Coroutine scope tied to this plugin's lifecycle.

Link copied to clipboard
Link copied to clipboard
val uri: String

Functions

Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun update(update: ViewUpdate)