Editor setup
Install the STK extension for VS Code or Cursor
The STK IntelliSense extension (strikekit.stk) provides completion, diagnostics, hover, and format-on-save for .stk files. It talks to the language server via strikekit lsp.
Prerequisites
| Tool | Purpose |
|---|---|
strikekit on PATH | Language server binary |
| VS Code or Cursor | Host editor |
| Node.js + npm | Build the extension from source |
Confirm the CLI works:
strikekit --help
strikekit lsp --help
strikekit format --helpInstall the extension
From the repository (typical local / development flow):
cd extensions/stk
npm install
npm run compileThen in VS Code / Cursor: Extensions → Install from VSIX… (or use the extension’s package script if present) and select the built VSIX.
Ensure your editor’s VS Code engine version is ≥ the engines.vscode value in extensions/stk/package.json (Help → About).
Point the extension at the CLI
Default: strikekit on PATH.
For a repo-local binary, set workspace settings so the extension uses ./strikekit (or the absolute path) instead of a global install.
Format from the CLI
# Preview (stdout only — file unchanged)
strikekit format login.stk
# Write changes
strikekit format --write login.stk
# CI check (exit 1 if would change)
strikekit format --check login.stk