mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add Feature: Related Tests
comment
This commit is contained in:
parent
daa2637486
commit
00e52e1f42
1 changed files with 13 additions and 0 deletions
|
@ -113,6 +113,19 @@ pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> {
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue