diff options
Diffstat (limited to 'crates/ra_ide/src/runnables.rs')
-rw-r--r-- | crates/ra_ide/src/runnables.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_ide/src/runnables.rs b/crates/ra_ide/src/runnables.rs index 6e7e47199..4bf2678e1 100644 --- a/crates/ra_ide/src/runnables.rs +++ b/crates/ra_ide/src/runnables.rs | |||
@@ -44,6 +44,17 @@ pub enum RunnableKind { | |||
44 | Bin, | 44 | Bin, |
45 | } | 45 | } |
46 | 46 | ||
47 | // Feature: Run | ||
48 | // | ||
49 | // Shows a popup suggesting to run a test/benchmark/binary **at the current cursor | ||
50 | // location**. Super useful for repeatedly running just a single test. Do bind this | ||
51 | // to a shortcut! | ||
52 | // | ||
53 | // |=== | ||
54 | // | Editor | Action Name | ||
55 | // | ||
56 | // | VS Code | **Rust Analyzer: Run** | ||
57 | // |=== | ||
47 | pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> { | 58 | pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> { |
48 | let sema = Semantics::new(db); | 59 | let sema = Semantics::new(db); |
49 | let source_file = sema.parse(file_id); | 60 | let source_file = sema.parse(file_id); |