[BUG] LSP plugins installed and enabled but "No LSP server available for file type: .js"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
LSP plugins are installed and enabled (vtsls and typescript-lsp) but when using the LSP tool, Claude Code returns "No LSP server available for file type: .js"
Environment:
- Claude Code version: 2.0.76
- Platform: Windows 11
- Plugins installed:
vtsls(claude-code-lsps),typescript-lsp(claude-plugins-official)
Verification done:
vtslsbinary is in PATH (where vtslsreturns valid path)jsconfig.jsonexists in project root with proper configuration- Both plugins show as enabled in
claude plugin list
Steps to reproduce:
- Install vtsls globally:
npm install -g @vtsls/language-server - Enable the vtsls plugin in Claude Code
- Open a project with a
jsconfig.json - Try to use any LSP operation on a
.jsfile
LSP call example:
LSP operation: documentSymbol
filePath: src/volt.js
line: 1
character: 1
Result: "No LSP server available for file type: .js"
What Should Happen?
The LSP tool should connect to the installed and enabled vtsls language server and return valid results for JavaScript files, such as document symbols, hover information, go-to-definition, etc.
Error Messages/Logs
Steps to Reproduce
- Install vtsls globally:
npm install -g @vtsls/language-server - Enable vtsls plugin in Claude Code:
claude plugin enable vtsls - Verify installation:
where vtsls(should return valid path) - Create a project with
jsconfig.json:
``json``
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"allowJs": true
},
"include": ["src/**/*"]
}
- Create a JS file in src/
- Try any LSP operation via Claude Code on that JS file
- Observe: "No LSP server available for file type: .js"
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.76 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Plugin installation output from claude plugin list:
claude-code-lsps
❯ ◉ vtsls user, v1.0.0
claude-plugins-official
◉ typescript-lsp user, v1.0.0
vtsls binary location:C:\Users\...\AppData\Roaming\npm\vtsls
jsconfig.json contents:
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "node",
"checkJs": false,
"allowJs": true,
"strict": false,
"noEmit": true,
"baseUrl": ".",
"paths": { "*": ["*"] }
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
The issue appears to be that Claude Code doesn't recognize/connect to the LSP server even though the plugin is installed and enabled.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗