From 856bf4a8ed36cc6ec38dc9001f753a8838106da2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 10:45:48 -0300 Subject: lsp: the in-process ZLS backend's last traces go: Lspinfo's +Lsp starts with its language servers (`language servers:`), where it said `backend: lsp-client` and `protocol servers (lsp-client):` from when Zig files had a backend of their own, and lsp.backend_name with it (lspbench's report and the tests that quoted the line follow); docs/lsp-evaluation.md's decision says what the tree is, one protocol client for every language, zls found on PATH, and what a user must install Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/lsp/lsp.zig | 3 --- src/lsp/lsp_client.zig | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/lsp') diff --git a/src/lsp/lsp.zig b/src/lsp/lsp.zig index 88d9cda2..2781077a 100644 --- a/src/lsp/lsp.zig +++ b/src/lsp/lsp.zig @@ -97,8 +97,6 @@ const has_client = switch (@import("pardes_config").platform) { }; const client = if (has_client) @import("lsp_client.zig") else void; -pub const backend_name = "lsp-client"; - pub const supports: std.EnumSet(Kind) = if (has_client) client.supports else .empty; pub fn speaks(path: []const u8) bool { @@ -107,7 +105,6 @@ pub fn speaks(path: []const u8) bool { pub fn query(io: std.Io, arena: std.mem.Allocator, req: Req, out: *std.Io.Writer) !void { if (req.kind == .status) { - try out.print("backend: {s}\n", .{backend_name}); if (has_client) try client.query(io, arena, req, out); return; } diff --git a/src/lsp/lsp_client.zig b/src/lsp/lsp_client.zig index 94d5bded..f2c186a8 100644 --- a/src/lsp/lsp_client.zig +++ b/src/lsp/lsp_client.zig @@ -2170,7 +2170,7 @@ fn notification(c: *Conn, io: std.Io, si: usize, g: u32, raw: []const u8, method // ------------------------------------------------------------- introspection fn status(io: std.Io, out: *std.Io.Writer) !void { - try out.print("\nprotocol servers (lsp-client):\n", .{}); + try out.print("language servers:\n", .{}); for (&specs, 0..) |*s, i| { const c = &conns[i]; c.mu.lockUncancelable(io); -- cgit v1.3