definitionJumps

fun definitionJumps(client: LSPClient, uri: String, keymap: Boolean = true): Extension

Build the editor Extension that enables the LSP go-to-definition family (jumpToDefinition / jumpToDeclaration / jumpToTypeDefinition / jumpToImplementation) for the file at uri served by client.

Mirrors how upstream @codemirror/lsp-client wires the jump commands: it carries this editor's per-editor binding through the definitionServer facet so the commands resolve their client/uri from the session they run in (no module-level mutable state), and — unless keymap is false — installs the jumpToDefinitionKeymap (F12) at high precedence.

Parameters

client

The LSP client wrapping the language server.

uri

The document URI for this editor's file.

keymap

When true (the default), the jumpToDefinitionKeymap binding is installed at high precedence. Pass false to bind the jump commands yourself.