aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvsrs <[email protected]>2021-03-11 14:58:45 +0000
committervsrs <[email protected]>2021-03-11 14:58:45 +0000
commit00e52e1f4275cdd597c40d28e508c9f59216894a (patch)
treeef0a73351e5ee88bd1682951b940ca9b522dec1b
parentdaa2637486755f012c738d3516ff7cb3d3dcd234 (diff)
Add `Feature: Related Tests` comment
-rw-r--r--crates/ide/src/runnables.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs
index d8cf66168..368bf9aa5 100644
--- a/crates/ide/src/runnables.rs
+++ b/crates/ide/src/runnables.rs
@@ -113,6 +113,19 @@ pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> {
113 res 113 res
114} 114}
115 115
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// |===
116pub(crate) fn related_tests( 129pub(crate) fn related_tests(
117 db: &RootDatabase, 130 db: &RootDatabase,
118 position: FilePosition, 131 position: FilePosition,