Build APIbldr
LanguageServerOptions
How to wrap one stdio language server as a v1 service.
interface in bldr
How to wrap one stdio language server as a v1 service.
Properties
claims: string[]
property
Globs this server answers about, relative to each mounted tree —
["**/*.rs"]. Required: a server that claims nothing is one the router
will never route to, and silently registering such a thing is worse than
refusing to.
command: string[]
property
The server's argv, as it would be run on a terminal — ["rust-analyzer"].
It is expected to speak LSP over stdin/stdout, which is the default for
every server this is meant to wrap.
priority: number
property
Higher wins when two servers claim one file. Defaults to 0.
service: Omit<RunServiceDef, "command">
property
Everything else about the service: image, mounts, env, workdir, runtime.
See RunServiceDef.