Allow viewing the crate graph in a webview

This commit is contained in:
Jonas Schievink
2021-05-11 16:15:31 +02:00
parent 9fa9d166d8
commit a85a2c4d15
11 changed files with 125 additions and 0 deletions

View File

@@ -61,6 +61,14 @@ impl Request for ViewHir {
const METHOD: &'static str = "rust-analyzer/viewHir";
}
pub enum ViewCrateGraph {}
impl Request for ViewCrateGraph {
type Params = ();
type Result = String;
const METHOD: &'static str = "rust-analyzer/viewCrateGraph";
}
pub enum ExpandMacro {}
impl Request for ExpandMacro {