mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-23 03:44:23 +00:00
Add a command to clear flycheck diagnostics
This commit is contained in:
parent
d8ddde27f9
commit
cf8d89e46b
7 changed files with 64 additions and 2 deletions
|
@ -792,6 +792,12 @@ export function cancelFlycheck(ctx: CtxInit): Cmd {
|
|||
};
|
||||
}
|
||||
|
||||
export function clearFlycheck(ctx: CtxInit): Cmd {
|
||||
return async () => {
|
||||
await ctx.client.sendNotification(ra.clearFlycheck);
|
||||
};
|
||||
}
|
||||
|
||||
export function runFlycheck(ctx: CtxInit): Cmd {
|
||||
return async () => {
|
||||
const editor = ctx.activeRustEditor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue