summaryrefslogtreecommitdiff
path: root/src/host_io.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host_io.zig')
-rw-r--r--src/host_io.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/host_io.zig b/src/host_io.zig
index bbf72d8c..b7e58506 100644
--- a/src/host_io.zig
+++ b/src/host_io.zig
@@ -916,7 +916,7 @@ pub const Lsp = struct {
failing.fail_index = std.math.maxInt(usize);
core.lspRequest(core.active, kind, "renamed");
const job = try snapshot(failing.allocator(), core, .{
- .id = core.lsp_wait.?.id,
+ .id = core.lsp_ask.wait.?.id,
.kind = kind,
.pane = @intCast(core.active),
.offset = 6,
@@ -925,7 +925,7 @@ pub const Lsp = struct {
if (fail) failing.fail_index = failing.alloc_index;
work(std.testing.io, failing.allocator(), job, &sink, Sink.take);
try std.testing.expectEqual(fail, sink.failed);
- try std.testing.expect(core.lsp_wait == null);
+ try std.testing.expect(core.lsp_ask.wait == null);
if (fail) {
try std.testing.expectEqualStrings("const value=1;\n", pane.file.?.content);
try std.testing.expectEqual(revision, pane.file.?.revision);
@@ -3759,9 +3759,9 @@ test "LSP query answers, and a newer one cancels it" {
defer queue.deinit();
for (0..2) |_| {
core.lspRequest(core.active, .status, "");
- queue.startLsp(core, .{ .id = core.lsp_wait.?.id, .kind = .status, .pane = @intCast(core.active), .offset = 0, .arg = "" });
+ queue.startLsp(core, .{ .id = core.lsp_ask.wait.?.id, .kind = .status, .pane = @intCast(core.active), .offset = 0, .arg = "" });
}
- const last = core.lsp_wait.?.id;
+ const last = core.lsp_ask.wait.?.id;
queue.lsp_task.?.future.await(io);
queue.lsp_task = null;
var batch = queue.take();
@@ -3770,5 +3770,5 @@ test "LSP query answers, and a newer one cancels it" {
try std.testing.expectEqual(last, batch.items[0].lsp.id);
try std.testing.expect(batch.items[0].lsp.rows != null);
core.update(.{ .lsp_resp = .{ .id = last, .rows = batch.items[0].lsp.rows } });
- try std.testing.expect(core.lsp_wait == null);
+ try std.testing.expect(core.lsp_ask.wait == null);
}