Add a command to clear flycheck diagnostics

This commit is contained in:
Lukas Wirth
2022-12-17 23:43:26 +01:00
parent d8ddde27f9
commit cf8d89e46b
7 changed files with 64 additions and 2 deletions

View File

@@ -144,6 +144,13 @@ impl Notification for RunFlycheck {
const METHOD: &'static str = "rust-analyzer/runFlycheck";
}
pub enum ClearFlycheck {}
impl Notification for ClearFlycheck {
type Params = ();
const METHOD: &'static str = "rust-analyzer/clearFlycheck";
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RunFlycheckParams {