feat: add show_diagnostics command and bind it to C-S-m and diagstate.on_click
This commit is contained in:
parent
a71a8cfc6e
commit
f9c029f617
3 changed files with 19 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue