aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/runnables.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-31 08:45:41 +0100
committerAleksey Kladov <[email protected]>2020-05-31 08:45:41 +0100
commitf593393ebb9bfa515caf168a9f037324eeb6edfe (patch)
tree7bb131eb52b9eaf457ac80760000ca5544fc0626 /crates/ra_ide/src/runnables.rs
parentc1161718792a1841841a51bc8450d37c4f1ff535 (diff)
Specify actions
Diffstat (limited to 'crates/ra_ide/src/runnables.rs')
-rw-r--r--crates/ra_ide/src/runnables.rs11
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// |===
47pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> { 58pub(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);