aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/extend_selection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/extend_selection.rs')
-rw-r--r--crates/ra_ide/src/extend_selection.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_ide/src/extend_selection.rs b/crates/ra_ide/src/extend_selection.rs
index 554594a43..cee0a19e1 100644
--- a/crates/ra_ide/src/extend_selection.rs
+++ b/crates/ra_ide/src/extend_selection.rs
@@ -14,6 +14,16 @@ use ra_syntax::{
14 14
15use crate::FileRange; 15use crate::FileRange;
16 16
17// Feature: Extend Selection
18//
19// Extends the current selection to the encompassing syntactic construct
20// (expression, statement, item, module, etc). It works with multiple cursors.
21//
22// |===
23// | Editor | Shortcut
24//
25// | VS Code | kbd:[Ctrl+Shift+→]
26// |===
17pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { 27pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange {
18 let sema = Semantics::new(db); 28 let sema = Semantics::new(db);
19 let src = sema.parse(frange.file_id); 29 let src = sema.parse(frange.file_id);