diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 10:45:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 10:57:08 -0300 |
| commit | 856bf4a8ed36cc6ec38dc9001f753a8838106da2 (patch) | |
| tree | 22e170f5b738935bb474dc350ddb02131a866680 /src | |
| parent | e6a9e2a3bbc5954d2c562019b3ce2983bb98b9cc (diff) | |
| download | pardes-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')
| -rw-r--r-- | src/CHANGELOG.md | 3 | ||||
| -rw-r--r-- | src/lsp/lsp.zig | 3 | ||||
| -rw-r--r-- | src/lsp/lsp_client.zig | 2 | ||||
| -rw-r--r-- | src/ninep/ctl.zig | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 29675db9..a3ee88c3 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -126,6 +126,9 @@ Signatures use syntax colors; only calls to the queried function get background emphasis, and tree guides continue through multiline signatures and wrapped rows. Cross-directory call locations use shorter relative paths. +- Lspinfo's `+Lsp` starts with its language servers: the `backend: + lsp-client` line, left from when Zig files had an in-process backend of + their own, is gone. - A terminal follows the shell at its prompt (the tty's foreground group), not the process pardes started: a shell that re-execs itself under a wrapper (fish's `exec 9ns --mntgen -- fish`) no longer leaves the pane 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); diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index a584cc8f..3b8dae1e 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -2889,7 +2889,7 @@ test "Lspinfo's answer is the +Lsp pane it fills, as a Rename preview's is its + defer p.deinit(); p.fs.lsp_result = null; p.lspRequest(p.active, .status, ""); - p.lspResponse(p.lsp_wait.?.id, "backend: lsp-client\n"); + p.lspResponse(p.lsp_wait.?.id, "language servers:\n"); const shown = p.paneBySerial(p.fs.lsp_result.?).?; try testing.expect(std.mem.endsWith(u8, p.panes[shown].?.file.?.path, "+Lsp")); } |
