From 91ff47ef6ac55f66ca57a2b1ee2eae62f50213f2 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 1 Mar 2021 11:07:15 +0100 Subject: Update vscode README with a small features list --- crates/ide/src/references.rs | 9 +++++++++ crates/ide/src/references/rename.rs | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'crates/ide') diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index 5d0449e56..fef70533d 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs @@ -39,6 +39,15 @@ pub struct Declaration { pub access: Option, } +// Feature: Find All References +// +// Shows all references of the item at the cursor location +// +// |=== +// | Editor | Shortcut +// +// | VS Code | kbd:[Shift+Alt+F12] +// |=== pub(crate) fn find_all_refs( sema: &Semantics, position: FilePosition, diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs index 175ddd759..22ddeeae3 100644 --- a/crates/ide/src/references/rename.rs +++ b/crates/ide/src/references/rename.rs @@ -59,6 +59,15 @@ pub(crate) fn prepare_rename( Ok(RangeInfo::new(range, ())) } +// Feature: Rename +// +// Renames the item below the cursor and all of its references +// +// |=== +// | Editor | Shortcut +// +// | VS Code | kbd:[F2] +// |=== pub(crate) fn rename( db: &RootDatabase, position: FilePosition, -- cgit v1.2.3