diff options
-rw-r--r-- | crates/ide/src/extend_selection.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ide/src/extend_selection.rs b/crates/ide/src/extend_selection.rs index 2d722dee0..b540d04fe 100644 --- a/crates/ide/src/extend_selection.rs +++ b/crates/ide/src/extend_selection.rs | |||
@@ -12,15 +12,17 @@ use syntax::{ | |||
12 | 12 | ||
13 | use crate::FileRange; | 13 | use crate::FileRange; |
14 | 14 | ||
15 | // Feature: Extend Selection | 15 | // Feature: Expand and Shrink Selection |
16 | // | 16 | // |
17 | // Extends the current selection to the encompassing syntactic construct | 17 | // Extends or shrinks the current selection to the encompassing syntactic construct |
18 | // (expression, statement, item, module, etc). It works with multiple cursors. | 18 | // (expression, statement, item, module, etc). It works with multiple cursors. |
19 | // | 19 | // |
20 | // This is a standard LSP feature and not a protocol extension. | ||
21 | // | ||
20 | // |=== | 22 | // |=== |
21 | // | Editor | Shortcut | 23 | // | Editor | Shortcut |
22 | // | 24 | // |
23 | // | VS Code | kbd:[Ctrl+Shift+→] | 25 | // | VS Code | kbd:[Alt+Shift+→], kbd:[Alt+Shift+←] |
24 | // |=== | 26 | // |=== |
25 | pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { | 27 | pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { |
26 | let sema = Semantics::new(db); | 28 | let sema = Semantics::new(db); |