served.serverbase

Base APIs to create LSP servers quickly. Reconfigures stdin and stdout upon importing to avoid accidental usage of the RPC channel. Changes stdin to a null file and stdout to stderr.

Members

Mixin templates

LanguageServerRouter
mixintemplate LanguageServerRouter(alias ExtensionModule, LanguageServerConfig serverConfig = LanguageServerConfig.init)

Utility to setup an RPC connection via stdin/stdout and route all requests to methods defined in the given extension module.

Static variables

stdin
io.File stdin;
stdout
io.File stdout;

Actual stdin/stdio as used for RPC communication.

Structs

LanguageServerConfig
struct LanguageServerConfig
Undocumented in source.

Meta