Add "View Crate Graph (Full)"

This commit is contained in:
Jonas Schievink
2021-07-02 00:08:05 +02:00
parent 76d8f55952
commit 5f13fb9db9
9 changed files with 58 additions and 15 deletions

View File

@@ -62,10 +62,17 @@ impl Request for ViewHir {
const METHOD: &'static str = "rust-analyzer/viewHir";
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ViewCrateGraphParams {
/// Include *all* crates, not just crates in the workspace.
pub full: bool,
}
pub enum ViewCrateGraph {}
impl Request for ViewCrateGraph {
type Params = ();
type Params = ViewCrateGraphParams;
type Result = String;
const METHOD: &'static str = "rust-analyzer/viewCrateGraph";
}