Skip to content

Commit 00e52e1

Browse files
committed
Add Feature: Related Tests comment
1 parent daa2637 commit 00e52e1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/ide/src/runnables.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> {
113113
res
114114
}
115115

116+
// Feature: Related Tests
117+
//
118+
// Provides a sneak peek of all tests where the current item is used.
119+
//
120+
// The simplest way to use this feature is via the context menu:
121+
// - Right-click on the selected item. The context menu opens.
122+
// - Select **Peek related tests**
123+
//
124+
// |===
125+
// | Editor | Action Name
126+
//
127+
// | VS Code | **Rust Analyzer: Peek related tests**
128+
// |===
116129
pub(crate) fn related_tests(
117130
db: &RootDatabase,
118131
position: FilePosition,

0 commit comments

Comments
 (0)