diff options
Diffstat (limited to 'core/lsp')
| -rw-r--r-- | core/lsp/Ask.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lsp/Ask.zig b/core/lsp/Ask.zig index df6a058a..376b093d 100644 --- a/core/lsp/Ask.zig +++ b/core/lsp/Ask.zig @@ -113,7 +113,7 @@ pub fn lspRequest(p: *Pardes, asked: usize, kind: lsp.Kind, arg_in: []const u8) p.emit(.{ .lsp = .{ .id = p.lsp_ask.seq, .kind = kind, - .pane = @intCast(id), + .pane = .at(id), .offset = @intCast(at), .arg = .from(sent), } }); @@ -445,7 +445,7 @@ test "Lspwhy after a Hover asks to explain that hover, in its file at its place, try std.testing.expectEqual(lsp.Kind.explain, e.lsp.kind); try std.testing.expectEqualStrings("hover ", e.lsp.arg.slice()); try std.testing.expectEqual(hover_at, e.lsp.offset); - try std.testing.expectEqual(@as(u8, 0), e.lsp.pane); + try std.testing.expectEqual(0, e.lsp.pane.index()); seen = true; }; try std.testing.expect(seen); |
