refactor(doctor): show detected LSP servers and extensions instead of hardcoded counts

Replace the hardcoded 4-server list in doctor LSP check with getAllServers()
from server-resolution.ts, which covers all 40+ builtin servers plus user
config. Output now shows server count with supported extensions, and verbose
mode expands to per-server detail lines.

Status:  LSP 3 servers (.go, .py, .pyi, .ts, .tsx)
Verbose: LSP 3 servers (.go, .py, .pyi, .ts, .tsx)
           typescript (.ts, .tsx, .js, .jsx)
           pyright (.py, .pyi)
           gopls (.go)

Closes #2587
This commit is contained in:
acamq
2026-03-15 18:39:56 -06:00
parent 5073efef48
commit 03da2e94a2
8 changed files with 32 additions and 41 deletions
+1 -2
View File
@@ -20,8 +20,7 @@ function createBaseResult(): DoctorResult {
isLocalDev: false,
},
tools: {
lspInstalled: 0,
lspTotal: 0,
lspServers: [],
astGrepCli: false,
astGrepNapi: false,
commentChecker: false,