feat: add show_diagnostics command and bind it to C-S-m and diagstate.on_click

This commit is contained in:
CJ van den Berg 2024-08-18 17:29:59 +02:00
parent a71a8cfc6e
commit f9c029f617
3 changed files with 19 additions and 1 deletions

View file

@ -32,7 +32,7 @@ pub fn create(a: Allocator, parent: Plane, event_handler: ?Widget.EventHandler)
}
fn on_click(_: *Self, _: *Button.State(Self)) void {
command.executeName("goto_next_diagnostic", .{}) catch {};
command.executeName("show_diagnostics", .{}) catch {};
}
pub fn layout(self: *Self, _: *Button.State(Self)) Widget.Layout {