@singapor/lsp
v0.1.1
Published
Runtime-neutral LSP client primitives for Singapor packages.
Readme
@singapor/lsp
Runtime-neutral LSP client primitives for Singapor packages.
This package is the low-level transport and protocol layer. Use @singapor/lsp-plugin when you want
an editor plugin that connects these primitives to @singapor/core.
Install
npm install @singapor/lspUsage
import { LspClient, createWebSocketLspTransport } from '@singapor/lsp'Exports
LspClientmanages request, response, notification, and workspace synchronization state.createWebSocketLspTransportandcreateWorkerLspTransportcreate managed transports.- Position helpers convert between editor offsets and LSP positions.
- Protocol error helpers expose LSP response and cancellation errors.
lspre-exportsvscode-languageserver-protocoltypes.
