From da788d3906618e0c0a5e760a49a1721cac5267d7 Mon Sep 17 00:00:00 2001 From: acamq <179265037+acamq@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:02:21 -0600 Subject: [PATCH] fix(doctor): remove redundant extensions from verbose LSP header The header line was showing all extensions unioned together which was redundant with the per-server detail lines below and caused line overflow. Status mode also simplified to just show server count. --- src/cli/doctor/format-verbose.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/doctor/format-verbose.ts b/src/cli/doctor/format-verbose.ts index b0c767cb0..e284e4026 100644 --- a/src/cli/doctor/format-verbose.ts +++ b/src/cli/doctor/format-verbose.ts @@ -36,8 +36,8 @@ export function formatVerbose(result: DoctorResult): string { if (tools.lspServers.length === 0) { lines.push(` ${formatStatusSymbol("warn")} LSP none detected`) } else { - const allExts = [...new Set(tools.lspServers.flatMap((s) => s.extensions))].sort() - lines.push(` ${formatStatusSymbol("pass")} LSP ${tools.lspServers.length} server${tools.lspServers.length === 1 ? "" : "s"} (${allExts.join(", ")})`) + const count = tools.lspServers.length + lines.push(` ${formatStatusSymbol("pass")} LSP ${count} server${count === 1 ? "" : "s"}`) for (const server of tools.lspServers) { lines.push(`${" ".repeat(20)}${server.id} (${server.extensions.join(", ")})`) }