mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add status bar button to toggle check on save state
This commit is contained in:
parent
33f9250d21
commit
e76d20e072
6 changed files with 63 additions and 3 deletions
|
@ -1407,3 +1407,10 @@ locate()
|
|||
ctx.pushExtCleanup(document);
|
||||
};
|
||||
}
|
||||
|
||||
export function toggleCheckOnSave(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
await ctx.config.toggleCheckOnSave();
|
||||
ctx.refreshServerStatus();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue