Expand description
Language Server Protocol support for Shuck.
The primary entrypoint is run, which starts the server over standard
input and output. A small set of document/session types is also exposed for
integration tests and embedding scenarios that need an in-memory LSP server.
Structs§
- Client
- Handle used by the server to send LSP messages back to the client.
- Client
Options - Per-client or per-workspace Shuck options supplied through LSP settings.
- Document
Snapshot - Immutable view of one document plus resolved settings.
- Global
Options - Global initialization options accepted by the Shuck LSP server.
- Server
- Initialized Shuck LSP server.
- Session
- Mutable LSP session state for open documents, workspaces, and settings.
- Text
Document - In-memory representation of an open LSP text document.
- Workspace
- One LSP workspace folder plus optional Shuck settings.
- Workspaces
- Collection of workspace folders known to the LSP session.
Enums§
- Document
Key - Key identifying an open document in the server index.
- Document
Query - Query handle for a document known to the server.
- Position
Encoding - Client/server position encoding negotiated for LSP text ranges.
Functions§
- generate_
diagnostics - Generate LSP diagnostics for a document snapshot.
- run
- Run the Shuck language server over standard input and output.