diff options
Diffstat (limited to 'crates/ra_ide/src/extend_selection.rs')
-rw-r--r-- | crates/ra_ide/src/extend_selection.rs | 10 |
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 | ||
15 | use crate::FileRange; | 15 | use 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 | // |=== | ||
17 | pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { | 27 | pub(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); |