Automatically restart language servers (like TypeScript/Vue/ESLint) when specific files or directories change.
Features
Auto Restart: Watches for file changes, checks file hashes, and only restarts when contents actually change.
Configurable Watch Patterns: Define exactly which files or folders should trigger a restart using glob patterns.
Custom Commands: Configure which VS Code commands to execute (e.g., typescript.restartTsServer, eslint.restart).
Non-intrusive Notifications: Shows a subtle progress bar notification when restarting, keeping your workflow uninterrupted. Detailed logs are available in the Output channel.
Configuration
This extension contributes the following settings:
Setting
Description
Default
restart-language-server.enable
Enable/disable this extension.
true
restart-language-server.debug
Enable verbose debug logging (file events and watcher details).
false
restart-language-server.includes
An array of glob patterns to watch. Example:["**/auto-imports.d.ts", "**/components.d.ts"]