findReferencesExtension

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

Build the editor Extension that enables LSP find-references for the file at uri served by client.

Mirrors how upstream @codemirror/lsp-client wires find-references: it carries this editor's per-editor binding through the referenceServer facet so findReferences resolves its client/uri from the session it runs in (no module-level mutable state), registers the reference-panel StateField plus its showPanels provider, and — unless keymap is false — installs the findReferencesKeymap (Shift-F12 / Escape) 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 findReferencesKeymap bindings are installed at high precedence. Pass false to bind the commands yourself.