feat: render diagnostics (part 1)

This commit is contained in:
CJ van den Berg 2024-04-17 23:26:19 +02:00
parent 33dd4486eb
commit e41c2d34f7
4 changed files with 67 additions and 14 deletions

View file

@ -538,7 +538,7 @@ fn send_diagnostic(_: *Self, to: tp.pid_ref, file_path: []const u8, diagnostic:
}
fn send_clear_diagnostics(_: *Self, to: tp.pid_ref, file_path: []const u8) !void {
try to.send(.{ "cmd", "clear_diagnostics", file_path });
try to.send(.{ "cmd", "clear_diagnostics", .{file_path} });
}
const Range = struct { start: Position, end: Position };