Editor Setup (LSP, VS Code, Zed)¶
Ebi includes a built-in Language Server Protocol (LSP) server via
shrimply ebi lsp (with a standalone ebi-lsp fallback). It provides
diagnostics, lint warnings, completion (including XML tags and utility
attributes), typed hover, signature help, document symbols, inferred type and
timeline duration inlay hints, semantic tokens, jump to definition (including
generated read-only standard library declarations), and document formatting.
Prerequisites¶
Install Shrimply and enable its terminal CLI in
(macOS:
). Both extensions check shrimply
on PATH, ~/.local/bin/shrimply, and standard macOS app locations before
falling back to standalone ebi-lsp.
Live project values on hover¶
When using shrimply ebi lsp, hovering a reflect(...) input in a saved
.ebi file shows the resolved value for each matching clip in active
Shrimply project sessions. Projects in ancestor directories are discovered
automatically, or pass --project /path/to/project.shrimp explicitly.
Unsaved buffers keep static features while withholding runtime values. The
server never launches a GUI or headless project owner.
VS Code¶
The VS Code extension (crates/ebi/editors/vscode) provides .ebi TextMate
syntax highlighting and connects to shrimply ebi lsp.
Double-click an inferred type inlay hint to insert its explicit
: Typeannotation.Set
ebi.server.pathto override the executable path, orebi.server.arguments(for example["ebi", "lsp", "--project", "/path/to/project.shrimp"]) to pin a project context. Reload the VS Code window after changing server settings.The extension is disabled in untrusted workspaces.
To build and install the VSIX locally:
$ cd crates/ebi/editors/vscode
$ npm ci && npm run package
$ code --install-extension ebi-0.1.0.vsix
Zed¶
The Zed extension (crates/ebi/editors/zed) connects directly to
shrimply ebi lsp over stdio. To point at a custom binary or project, add
to Zed’s settings.json:
{
"languages": {
"Ebi": {
"language_servers": ["ebi-lsp"],
"semantic_tokens": "full",
"inlay_hints": { "enabled": true }
}
},
"lsp": {
"ebi-lsp": {
"binary": { "path": "/absolute/path/to/shrimply" }
}
}
}
Build and install locally from the repository root:
$ make -C crates/ebi/editors/zed target
$ make -C crates/ebi/editors/zed install
Other LSP editors¶
Any editor with a standard stdio LSP client can run shrimply ebi lsp (or
a standalone ebi-lsp built with make -C crates/ebi lsp-build). Standard
output carries only Content-Length framed JSON-RPC messages.