@px-lsp/protocol
v0.2.5
Published
Wire contract (custom LSP requests/notifications, settings types) and shared helpers for the px-lsp language server and its clients.
Readme
@px-lsp/protocol
The wire contract of the px-lsp language server:
custom LSP request/notification names, their payload types, the settings and
initialization-option shapes, plus a few pure helpers shared between the
server and its clients (tiger report parsing, .mod descriptor parsing,
diagnostic suppression, localization helpers).
The published package ships compiled JavaScript with type declarations, so it works from plain Node and from any bundler:
// The root export is the wire contract (request/notification names + payload types):
import { modOverviewRequest, type ModOverview } from "@px-lsp/protocol";
// The helpers live in named modules:
import { parseTigerJson } from "@px-lsp/protocol/tigerParser";
import { parseDescriptor } from "@px-lsp/protocol/descriptorMod";Clients in other languages should code against the documented contract instead:
see docs/PROTOCOL.md
in the repository. Changes to the wire contract are treated as API changes
and versioned with the packages.
License: GPL-3.0-or-later.
