refactor: add log message when enabling or disabling format on save
This commit is contained in:
parent
44356e5d30
commit
7ab1480f29
1 changed files with 3 additions and 0 deletions
|
|
@ -5563,6 +5563,9 @@ pub const Editor = struct {
|
||||||
|
|
||||||
pub fn toggle_format_on_save(self: *Self, _: Context) Result {
|
pub fn toggle_format_on_save(self: *Self, _: Context) Result {
|
||||||
self.enable_format_on_save = !self.enable_format_on_save;
|
self.enable_format_on_save = !self.enable_format_on_save;
|
||||||
|
std.log.info("format on save {s}", .{
|
||||||
|
if (self.enable_format_on_save) "enabled" else "disabled",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
pub const toggle_format_on_save_meta: Meta = .{ .description = "Toggle format on save" };
|
pub const toggle_format_on_save_meta: Meta = .{ .description = "Toggle format on save" };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue