Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index e21f536f26..aba37bac27 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -1407,3 +1407,10 @@ locate()
ctx.pushExtCleanup(document);
};
}
+
+export function toggleCheckOnSave(ctx: Ctx): Cmd {
+ return async () => {
+ await ctx.config.toggleCheckOnSave();
+ ctx.refreshServerStatus();
+ };
+}