Gifs and screenshots for features in manual

This commit is contained in:
Ayomide Bamidele 2021-03-31 00:08:10 +01:00
parent 95107a7ccf
commit 276022682b
24 changed files with 44 additions and 0 deletions

View file

@ -10,6 +10,7 @@ use syntax::{algo::find_node_at_offset, ast, AstNode};
//
// | VS Code | **Rust Analyzer: View Hir**
// |===
// image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b1-11eb-9a78-0b4ef1e972fb.gif[]
pub(crate) fn view_hir(db: &RootDatabase, position: FilePosition) -> String {
body_hir(db, position).unwrap_or_else(|| "Not inside a function body".to_string())
}