Merge pull request #2588 from acamq/refactor/doctor-lsp-extensions

refactor(doctor): show detected LSP extensions instead of hardcoded server counts
This commit is contained in:
acamq
2026-03-15 19:12:48 -06:00
committed by GitHub
8 changed files with 32 additions and 48 deletions
+5 -3
View File
@@ -19,8 +19,10 @@ function createDoctorResult(): DoctorResult {
isLocalDev: false,
},
tools: {
lspInstalled: 2,
lspTotal: 4,
lspServers: [
{ id: "typescript", extensions: [".ts", ".tsx", ".js", ".jsx"] },
{ id: "pyright", extensions: [".py", ".pyi"] },
],
astGrepCli: true,
astGrepNapi: false,
commentChecker: true,
@@ -119,7 +121,7 @@ describe("formatDoctorOutput", () => {
const output = stripAnsi(formatDoctorOutput(result, "status"))
//#then
expect(output).toContain("LSP 2/4")
expect(output).toContain("LSP")
expect(output).toContain("context7")
})
})