Interactive setup for TypeScript LSP development environment
Sets up vtsls LSP with TypeScript, ESLint, and Prettier for JavaScript/TypeScript development. Use this to configure your environment for intelligent code completion, type checking, and linting in Claude Code.
/plugin marketplace add zircote/typescript-lsp/plugin install typescript-lsp@zircote-lspThis command will configure your TypeScript/JavaScript development environment with vtsls LSP and essential tools.
First, verify Node.js is installed:
node --version
npm --version
npm install -g @vtsls/language-server typescript
Quick install (all recommended tools):
npm install -g eslint prettier typescript-language-server
# Check vtsls
vtsls --version
# Check TypeScript
tsc --version
# Check ESLint
eslint --version
# Check Prettier
prettier --version
tsconfig.json:
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
export ENABLE_LSP_TOOL=1
Test the LSP integration:
# Create a test file
echo 'const greet = (name: string): string => `Hello, ${name}!`;' > test_lsp.ts
# Run type check
npx tsc --noEmit test_lsp.ts
# Clean up
rm test_lsp.ts