Packages
@strict-script/vscode
strict-script in VS Code and the editors built on it. The extension is a grammar, for the colours, and the language
server of @strict-script/lsp, which it starts: what is refused where it is typed, the type under the
cursor, and what may be written where the cursor is.
pnpm vscode
code --install-extension packages/vscode/dist/strict-script.vsix
extension/syntaxes/strict-script.tmLanguage.json | The grammar, a TextMate one: JetBrains editors and Sublime Text read it too |
extension/language-configuration.json | Comments, brackets, what closes by itself, indentation |
src/client.cjs | Starts the language server with the first .sts file |
test/editor/ | Run inside VS Code itself (pnpm vscode:editor): a refusal, a type under the cursor, what is offered after a . |
scripts/build.mjs | Writes dist/extension/ and dist/strict-script.vsix |
test/grammar.test.ts | The grammar is declared, every pattern can be read, and the words of the language get their scope |
See In the editor.