summaryrefslogtreecommitdiff
path: root/core/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'core/lsp')
-rw-r--r--core/lsp/Ask.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/lsp/Ask.zig b/core/lsp/Ask.zig
index 29d36f0a..62248304 100644
--- a/core/lsp/Ask.zig
+++ b/core/lsp/Ask.zig
@@ -530,7 +530,7 @@ test "Def and Refs are a speaking file's tag words; gd, gr and a 2-1 chord all r
// A symbol the file does not hold is said, and nothing is asked.
exec.runBuiltin(p, .Def, 0, "", "gamma");
try std.testing.expectError(error.NothingAsked, Asked.one(p, .definition));
- try std.testing.expectEqualStrings("Def: no gamma in this file", pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("Def: no gamma in this file", p.messages.saidBy(pane));
}
test "Callstack always opens and focuses its own pane, reusing it for another symbol" {
@@ -580,7 +580,7 @@ test "Callers with one answer jumps to it and says where, in a msg" {
const wait = p.lsp_ask.wait.?;
p.update(.{ .lsp_resp = .{ .id = wait.id, .rows = "/test.txt:2:10 b\n" } });
try std.testing.expectEqual(@as(i32, 1), pane.body.cur_row);
- try std.testing.expectEqualStrings("Callers: the one, /test.txt:2:10", pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("Callers: the one, /test.txt:2:10", p.messages.saidBy(pane));
}
test "a Rename the language server finds nothing for says so, and changes nothing" {
@@ -591,7 +591,7 @@ test "a Rename the language server finds nothing for says so, and changes nothin
p.lspRequest(p.view().active, .rename, "renamed");
const wait = p.lsp_ask.wait.?;
p.update(.{ .lsp_resp = .{ .id = wait.id, .rows = "" } });
- try std.testing.expectEqualStrings("Rename: nothing here to rename", pane.msg[0..pane.msg_len]);
+ try std.testing.expectEqualStrings("Rename: nothing here to rename", p.messages.saidBy(pane));
try std.testing.expectEqualStrings("const value=1;\n", pane.file.?.content);
}