snippets for common patterns (including std.http POST)
1) Install the Loom CLI
The extension no longer bundles the Loom executable. Install loom so it is available on your shell PATH, or point the extension at an explicit binary with loom.server.path.
From repository root, a local install looks like:
cargo install --path ..
One command (recommended)
From vscode-loom/:
npm run build:vsix
This command will:
install/update extension npm dependencies
compile and package the extension into a .vsix
2) Build extension
npm install
npm run compile
3) Run in Extension Development Host
Open vscode-loom/ in VS Code and press F5.
4) Package VSIX
npm run package
Runtime behavior
Binary resolution order:
loom.server.path setting (absolute path)
loom from system PATH
If the extension cannot find loom, it will fail to start the language server and show an error.
With a current Loom CLI installed, editor features include hover and autocomplete for:
@import "std.http" as http
@http.post(...)
@secret(...)
named arguments and object-literal headers in HTTP calls
Important syntax note:
In Loom, plain quotes ("...") are path literals.
In argument positions, plain quotes read a file and pass file contents.
Use escaped strings (\"...") for literal text arguments like URLs, header values, and secret names.
Commands
Loom: Run Current File
Settings
loom.server.path: explicit binary path override
loom.server.extraArgs: extra args passed to loom --lsp