mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
move rename to a new mod
This commit is contained in:
parent
bc0f79f74a
commit
5c8cb56506
8 changed files with 233 additions and 105 deletions
|
@ -23,6 +23,7 @@ mod hover;
|
|||
mod call_info;
|
||||
mod syntax_highlighting;
|
||||
mod parent_module;
|
||||
mod rename;
|
||||
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
|
@ -464,7 +465,7 @@ impl Analysis {
|
|||
&self,
|
||||
position: FilePosition,
|
||||
new_name: &str,
|
||||
) -> Cancelable<Vec<SourceFileEdit>> {
|
||||
) -> Cancelable<Option<SourceChange>> {
|
||||
self.with_db(|db| db.rename(position, new_name))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue