UNPKG

@gdquest/codemirror-lsp

Version:

Enables Codemirror to interact with a local lsp, ie. a LSP that isn't socket-based, but rather work by function calls.

13 lines 490 B
import { type Extension } from "@codemirror/state"; export * from "./lsp/conversion.mts"; export type ServerResponseCallback = (jsonRpc: string) => void; export interface LspConfigData { emitServerCommand: ServerResponseCallback; } export interface LspConfig { autocompletion?: boolean; onClientCommand: (jsonRpc: string) => void; getData: (data: LspConfigData) => void; } export declare function createLsp(config: LspConfig): Extension; //# sourceMappingURL=index.d.mts.map