refactor: add log message when enabling or disabling format on save

This commit is contained in:
CJ van den Berg 2026-02-02 17:34:30 +01:00
parent 44356e5d30
commit 7ab1480f29
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -5563,6 +5563,9 @@ pub const Editor = struct {
pub fn toggle_format_on_save(self: *Self, _: Context) Result {
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" };