Skip to content

Commit de67469

Browse files
bors[bot]lnicola
andauthored
Merge #7727
7727: Remove documentation of obsolete extend selection command r=matklad a=lnicola Closes #7454 This is available in LSP as `textDocument/selectionRange` and no longer exists as a stand-alone command, so we shouldn't mention it in the manual because it's confusing (it doesn't appear in `package.json`). Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2 parents 1349f6a + 4c589ad commit de67469

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/ide/src/extend_selection.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ use syntax::{
1212

1313
use crate::FileRange;
1414

15-
// Feature: Extend Selection
15+
// Feature: Expand and Shrink Selection
1616
//
17-
// Extends the current selection to the encompassing syntactic construct
17+
// Extends or shrinks the current selection to the encompassing syntactic construct
1818
// (expression, statement, item, module, etc). It works with multiple cursors.
1919
//
20+
// This is a standard LSP feature and not a protocol extension.
21+
//
2022
// |===
2123
// | Editor | Shortcut
2224
//
23-
// | VS Code | kbd:[Ctrl+Shift+→]
25+
// | VS Code | kbd:[Alt+Shift+→], kbd:[Alt+Shift+←]
2426
// |===
2527
pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange {
2628
let sema = Semantics::new(db);

0 commit comments

Comments
 (0)