From 55faa2daa3fc8bd213038a012b1c5e9ad5fd3736 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 16 Dec 2020 21:35:15 +0100 Subject: Lifetime reference search --- crates/ide/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crates/ide/src/lib.rs') diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 71068cac2..c5c652cda 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -528,6 +528,13 @@ impl Analysis { self.with_db(|db| references::rename::rename(db, position, new_name)) } + pub fn prepare_rename( + &self, + position: FilePosition, + ) -> Cancelable, RenameError>> { + self.with_db(|db| references::rename::prepare_rename(db, position)) + } + pub fn structural_search_replace( &self, query: &str, -- cgit v1.2.3