Add command for manually running flychecks

This commit is contained in:
Lukas Wirth
2022-12-16 22:43:14 +01:00
parent ba3e3282da
commit a04feb915a
7 changed files with 133 additions and 80 deletions

View File

@@ -138,6 +138,19 @@ impl Request for CancelFlycheck {
const METHOD: &'static str = "rust-analyzer/cancelFlycheck";
}
pub enum RunFlycheck {}
impl Notification for RunFlycheck {
type Params = RunFlycheckParams;
const METHOD: &'static str = "rust-analyzer/runFlycheck";
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct RunFlycheckParams {
pub text_document: Option<TextDocumentIdentifier>,
}
pub enum MatchingBrace {}
impl Request for MatchingBrace {