feat(coding-agent): surfaced lazy LSP servers as available in welcome screen
- Added "available" status so recognized servers show under lazy mode without warmup. - Rendered full welcome box as pre-TUI splash with fixed slot heights to avoid layout shift. - Reported lazy servers as available in /status instead of omitting the section.
This commit is contained in:
@@ -315,7 +315,13 @@ export class CommandController {
|
||||
info += `\n${theme.bold("LSP Servers")}\n`;
|
||||
for (const server of this.ctx.lspServers) {
|
||||
const statusColor =
|
||||
server.status === "ready" ? "success" : server.status === "connecting" ? "warning" : "error";
|
||||
server.status === "ready"
|
||||
? "success"
|
||||
: server.status === "available"
|
||||
? "dim"
|
||||
: server.status === "connecting"
|
||||
? "warning"
|
||||
: "error";
|
||||
const statusText =
|
||||
server.status === "error" && server.error ? `${server.status}: ${server.error}` : server.status;
|
||||
info += `${theme.fg("dim", `${server.name}:`)} ${theme.fg(statusColor, statusText)} ${theme.fg("dim", `(${server.fileTypes.join(", ")})`)}\n`;
|
||||
|
||||
Reference in New Issue
Block a user