Add status bar button to toggle check on save state

This commit is contained in:
Lukas Wirth 2023-08-12 08:25:51 +02:00
parent 33f9250d21
commit e76d20e072
6 changed files with 63 additions and 3 deletions

View file

@ -1407,3 +1407,10 @@ locate()
ctx.pushExtCleanup(document);
};
}
export function toggleCheckOnSave(ctx: Ctx): Cmd {
return async () => {
await ctx.config.toggleCheckOnSave();
ctx.refreshServerStatus();
};
}