mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
fix renaming of modules
This commit is contained in:
parent
86f5fd602b
commit
33965f0f3e
3 changed files with 92 additions and 80 deletions
|
@ -466,7 +466,7 @@ impl Analysis {
|
|||
&self,
|
||||
position: FilePosition,
|
||||
) -> Cancelable<Option<ReferenceSearchResult>> {
|
||||
self.with_db(|db| references::find_all_refs(db, position))
|
||||
self.with_db(|db| references::find_all_refs(db, position).map(|it| it.info))
|
||||
}
|
||||
|
||||
/// Returns a short text describing element at position.
|
||||
|
@ -536,7 +536,7 @@ impl Analysis {
|
|||
&self,
|
||||
position: FilePosition,
|
||||
new_name: &str,
|
||||
) -> Cancelable<Option<SourceChange>> {
|
||||
) -> Cancelable<Option<RangeInfo<SourceChange>>> {
|
||||
self.with_db(|db| references::rename(db, position, new_name))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue