From 8915183d7da07a4b295e5e93a889dea4c15024a0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 May 2020 09:59:38 +0200 Subject: Don't require module docs for Features and Assists --- crates/ra_ide/src/syntax_tree.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide/src/syntax_tree.rs') diff --git a/crates/ra_ide/src/syntax_tree.rs b/crates/ra_ide/src/syntax_tree.rs index 86c70ff83..2192f5090 100644 --- a/crates/ra_ide/src/syntax_tree.rs +++ b/crates/ra_ide/src/syntax_tree.rs @@ -1,5 +1,3 @@ -//! FIXME: write short doc here - use ra_db::SourceDatabase; use ra_ide_db::RootDatabase; use ra_syntax::{ @@ -8,8 +6,16 @@ use ra_syntax::{ SyntaxToken, TextRange, TextSize, }; -pub use ra_db::FileId; - +// Feature: Show Syntax Tree +// +// Shows the parse tree of the current file. It exists mostly for debugging +// rust-analyzer itself. +// +// |=== +// | Editor | Action Name +// +// | VS Code | **Rust Analyzer: Show Syntax Tree** +// |=== pub(crate) fn syntax_tree( db: &RootDatabase, file_id: FileId, -- cgit v1.2.3