LSP¶
Start the language server over stdio:
For debugging, record JSON-RPC traffic and server events:
Trace files can include source text. Treat them as local debugging artifacts.
The server provides:
- Diagnostics for parse, syntax, dependency, and type errors.
- Formatting for
.ub,project.ub, andproject-lock.ubfiles. - Document symbols and definitions.
- Completion for source blocks, references, expected values, and input declarations.
- Hover where semantic information is available.
The server keeps a project cache for open workspaces. File changes to .ub, .go, go.mod, project.ub, and project-lock.ub refresh the cache. It does not fetch remote dependencies during editing.