[BUG] LSP server stuck in error state - Cannot send notification to LSP server 'plugin:vtsls:typescript'
Resolved 💬 3 comments Opened Jan 13, 2026 by VicHsu-TW Closed Feb 28, 2026
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?
Description
The LSP tool fails to connect to the TypeScript language server (vtsls). All LSP operations (hover, goToDefinition, documentSymbol, etc.) return the same error:
Error performing hover: Failed to sync file open [path]: Cannot send notification to LSP server 'plugin:vtsls:typescript': server is error
Steps to Reproduce
- Open a project with TypeScript/JavaScript files
- 2. Use any LSP tool operation (hover, goToDefinition, etc.)
- 3. The operation fails with the error above
Environment
- OS: macOS Darwin 25.2.0
- - Project path: Contains spaces (e.g.,
/Volumes/Ramdisk/Assistant Leave Management System) - - - VS Code TypeScript server logs show:
- - - ```
- - - [info] Starting TS Server
- - - [info] Using tsserver from: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
- - - [info] <syntax> Starting...
- - - [info] <semantic> Starting...
- - - [error] TSServer exited. Code: null. Signal: SIGTERM
- - - ```
Notes
- VS Code's TypeScript server starts successfully and restarts after SIGTERM
- - The issue persists across multiple VS Code restarts
- - - All other Claude Code tools (Grep, Glob, Read, Edit) work correctly
- - - - Only LSP integration is affected
What Should Happen?
LSP operations should work correctly and return type information, definitions, and references from the TypeScript language server. The LSP tool should maintain a stable connection to vtsls even when the project path contains spaces.
Error Messages/Logs
Error performing hover: Failed to sync file open /Volumes/Ramdisk/Assistant Leave Management System/backend/src/index.ts: Cannot send notification to LSP server 'plugin:vtsls:typescript': server is error
Steps to Reproduce
- Open a project directory that contains spaces in the path (e.g.,
/Volumes/Ramdisk/My Project) - 2. The project should have TypeScript/JavaScript files with proper tsconfig.json
- 3. In Claude Code, use any LSP tool operation:
- -
LSP hoveron a symbol - -
LSP goToDefinitionon a function call - -
LSP findReferenceson a variable - 4. Observe the error: "Cannot send notification to LSP server 'plugin:vtsls:typescript': server is error"
- 5. Check VS Code Output panel (TypeScript) - server starts but gets SIGTERM
- 6. Restart VS Code multiple times - issue persists
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.6 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗