summaryrefslogtreecommitdiff
path: root/src/lsp
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 10:45:48 -0300
committerGabriel Schneider <[email protected]>2026-11-05 10:57:08 -0300
commit856bf4a8ed36cc6ec38dc9001f753a8838106da2 (patch)
tree22e170f5b738935bb474dc350ddb02131a866680 /src/lsp
parente6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc (diff)
downloadpardes-856bf4a8ed36cc6ec38dc9001f753a8838106da2.tar.gz
pardes-856bf4a8ed36cc6ec38dc9001f753a8838106da2.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/lsp')
-rw-r--r--src/lsp/lsp.zig3
-rw-r--r--src/lsp/lsp_client.zig2
2 files changed, 1 insertions, 4 deletions
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);