Skip to main content

Crate shuck_server

Crate shuck_server 

Source
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.
ClientOptions
Per-client or per-workspace Shuck options supplied through LSP settings.
DocumentSnapshot
Immutable view of one document plus resolved settings.
GlobalOptions
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.
TextDocument
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§

DocumentKey
Key identifying an open document in the server index.
DocumentQuery
Query handle for a document known to the server.
PositionEncoding
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.