summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/lspbench.zig3
-rw-r--r--test/process/builtins.zig4
-rw-r--r--test/snapshots/lspdebug.snap3
3 files changed, 4 insertions, 6 deletions
diff --git a/test/lspbench.zig b/test/lspbench.zig
index 9857b61c..4b107b25 100644
--- a/test/lspbench.zig
+++ b/test/lspbench.zig
@@ -175,7 +175,6 @@ fn runOnce(gpa: std.mem.Allocator, req_in: lsp.Req, expected: []const u8, r: *Re
fn reportText(rs: []const Result, rss: u64) void {
const o = std.debug.print;
- o("backend: {s}\n\n", .{lsp.backend_name});
o("{s:<24} {s:>9} {s:>7} {s:>10} {s:>10} {s}\n", .{ "kind", "supports", "rows", "cold(us)", "warm(us)", "verdict" });
o("{s}\n", .{&@as([78]u8, @splat('-'))});
var claimed: usize = 0;
@@ -206,7 +205,7 @@ fn reportText(rs: []const Result, rss: u64) void {
fn reportJson(rs: []const Result, rss: u64) void {
const o = std.debug.print;
- o("{{\"backend\":\"{s}\",\"rss_kib\":{d},\"probes\":[", .{ lsp.backend_name, rss });
+ o("{{\"rss_kib\":{d},\"probes\":[", .{rss});
for (rs, 0..) |r, i| {
if (i > 0) o(",", .{});
o("{{\"kind\":\"{s}\",\"supports\":{},\"rows\":{d},\"correct\":{},\"cold_us\":{d},\"warm_us\":{d}}}", .{
diff --git a/test/process/builtins.zig b/test/process/builtins.zig
index 410a3f54..55f4ed49 100644
--- a/test/process/builtins.zig
+++ b/test/process/builtins.zig
@@ -7,7 +7,7 @@ const has = process.has;
const check = process.check;
pub const cases = .{
- .{ "builtins: Lspinfo opens one +Lsp pane saying the backend and its servers, detached and in a pty", lspinfo },
+ .{ "builtins: Lspinfo opens one +Lsp pane saying its language servers, detached and in a pty", lspinfo },
};
fn lspinfo(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
@@ -43,7 +43,7 @@ fn lspinfo(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
process.nap(5);
};
const body = try c.pane(a, lsp, "body");
- try check(std.mem.startsWith(u8, body, "backend: lsp-client\n") and has(body, "protocol servers (lsp-client):"), "{s}", .{body});
+ try check(std.mem.startsWith(u8, body, "language servers:\n") and has(body, " zls "), "{s}", .{body});
try std.testing.expectEqualStrings("initial\n", try c.read(a, "/pane/1/body"));
var f: process.Files = .init(gpa, address);
defer f.deinit();
diff --git a/test/snapshots/lspdebug.snap b/test/snapshots/lspdebug.snap
index 22fa097b..c66a5d67 100644
--- a/test/snapshots/lspdebug.snap
+++ b/test/snapshots/lspdebug.snap
@@ -30,8 +30,7 @@ snap why-closed
# Check the report's answers, not installed compiler paths or dependency counts.
key space l i
-wait 10000 backend: lsp-client
-wait 10000 protocol servers (lsp-client):
+wait 10000 language servers:
wait 10000 zls
key space w j enter
key /