TypeScript
Language server: vtsls (preferred)
Krait auto-installs vtsls on first use via npm. To pre-install:
npm install -g @vtsls/language-serverRequirements
Section titled “Requirements”tsconfig.jsonat the project root (or workspace root in a monorepo)- Node.js in PATH
Monorepos
Section titled “Monorepos”Each sub-package with a tsconfig.json is detected as a separate workspace. Run krait init to generate the workspace config:
krait initSupported Operations
Section titled “Supported Operations”All krait operations work with TypeScript:
find symbol— resolves types, interfaces, functions, classeshover— shows full type signatures and JSDoccheck— TypeScript compiler errors and warningsedit replace— replaces symbol body with LSP-aware boundariesrename— cross-file rename with TypeScript compiler
Troubleshooting
Section titled “Troubleshooting”Symbols not found: Ensure tsconfig.json exists. Missing tsconfig causes degraded resolution.
Slow first query: vtsls needs 2-10s to load all types on first start. Subsequent queries are 20-60ms.
Monorepo packages missing: Run krait init to detect and register all packages.