From 00e52e1f4275cdd597c40d28e508c9f59216894a Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 11 Mar 2021 17:58:45 +0300 Subject: Add `Feature: Related Tests` comment --- crates/ide/src/runnables.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crates') 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 { res } +// Feature: Related Tests +// +// Provides a sneak peek of all tests where the current item is used. +// +// The simplest way to use this feature is via the context menu: +// - Right-click on the selected item. The context menu opens. +// - Select **Peek related tests** +// +// |=== +// | Editor | Action Name +// +// | VS Code | **Rust Analyzer: Peek related tests** +// |=== pub(crate) fn related_tests( db: &RootDatabase, position: FilePosition, -- cgit v1.2.3