Other editors
Any LSP-capable editor can run node_modules/.bin/vibelang --lsp --stdio over .vibe, .vibex, .ts, and .tsx files selected by vibe.config.json, tsconfig.json, or jsconfig.json (checked in that order). The server uses LSP 3.17 pull diagnostics (textDocument/diagnostic), falling back to publishDiagnostics on open, change, and save for push-only clients such as Claude Code.
1. Check the server
From the project directory, run:
npx vibelang --versionExpected output: VibeLang 0.0.15 (TypeScript 7.1.0-dev).
2. Configure the LSP client
| Setting | Value |
|---|---|
| Command | node_modules/.bin/vibelang --lsp --stdio (or its absolute path) |
| Files | *.vibe, *.vibex (add *.ts, *.tsx to serve TypeScript too) |
| Root marker | vibe.config.json, tsconfig.json, or jsconfig.json |
| Language id | vibe, vibex (typescript, typescriptreact for TypeScript) |
If the server handles .ts files, disable your other TypeScript server for the project to avoid duplicate diagnostics. JetBrains IDEs can attach through the LSP4IJ plugin.
3. Highlight .vibe files on GitHub
Add to .gitattributes:
*.vibe linguist-language=TypeScriptLanguage server behavior
- Inline
moduledeclarations (VIP-40): Diagnostics stay on the containing.vibedocument (no virtual editor documents). Rename, Find References (including across large native TypeScript libraries without stalling, honoring the client's declaration filter), and Organize Imports span module bodies and identifier specifiers (from text, escapedfrom \u0074ext). Renaming a merged symbol updates specifiers too, while an independentimport type { M }stays separate frommodule M. Other bindings stay renameable even if amoduledeclaration is missing its name. - Patterns, parameters, and matchers:
isbindings inwhile,do…while, andforheads keep identity across short-circuiting (||,&&,?:) for references and rename. Parameter declarations and destructuring sources (including contextual names such assource) stay linked even when defaults containdo { }or returningmatcharms. Signature help supports qualified/computed extractor matchers (Matchers.pick(let item),Matchers["pick"](let item)), regex extractors, and unresolved matcher names. - Schemas and types: Definition, type-definition, hover, references, and rename follow written type bindings—including type-only/namespace imports and mapped generics (
Array<number>,ReadonlyMap<string, number>)—while ordinarySchemavalues keep their own definitions. Legacyinfer _placeholders decline rename (ordinary generic parameters and conditionalinferbindings remain renameable). - Formatting and retired forms: Same-line
schema,error,schema error, anddatadeclarations preserve both declarations, docs, and written schema type aliases when formatted. Retiredservice class(EK0909) andlayer(EK2121) declarations are always errors regardless of warning settings.