Commit a6df470
Fix multiple Vale process spawning issue (#79)
This fixes the regression of the issue originally resolved in PR #18,
where multiple Vale processes would spawn and consume excessive CPU.
The LSP-based rewrite (PR #41) removed the old safeguards. This commit
adds proper client lifecycle management:
- Check for existing client in activate() and stop it before creating new one
- Improve deactivate() with async/await and error handling
- Add logging for better debugging of client lifecycle
This ensures only one vale-ls process runs at a time, preventing the
CPU spike issues users were experiencing.
Fixes: Issue with multiple Vale processes spawning
Related: PR #18
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent a3bf103 commit a6df470
1 file changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
214 | 224 | | |
215 | 225 | | |
216 | 226 | | |
217 | | - | |
| 227 | + | |
218 | 228 | | |
219 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
220 | 237 | | |
221 | | - | |
222 | 238 | | |
0 commit comments