summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CHANGELOG.md3
-rw-r--r--src/lsp/lsp.zig3
-rw-r--r--src/lsp/lsp_client.zig2
-rw-r--r--src/ninep/ctl.zig2
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"));
}