mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Don't show flyimport completions in use renames
This commit is contained in:
parent
533ca584c3
commit
d7d16a7ac9
3 changed files with 16 additions and 0 deletions
|
@ -32,6 +32,7 @@ pub(crate) enum ImmediatePrevSibling {
|
|||
pub(crate) enum ImmediateLocation {
|
||||
Use,
|
||||
UseTree,
|
||||
Rename,
|
||||
Impl,
|
||||
Trait,
|
||||
RecordField,
|
||||
|
@ -201,6 +202,7 @@ pub(crate) fn determine_location(
|
|||
ast::Use(_it) => ImmediateLocation::Use,
|
||||
ast::UseTree(_it) => ImmediateLocation::UseTree,
|
||||
ast::UseTreeList(_it) => ImmediateLocation::UseTree,
|
||||
ast::Rename(_it) => ImmediateLocation::Rename,
|
||||
ast::StmtList(_it) => ImmediateLocation::StmtList,
|
||||
ast::SourceFile(_it) => ImmediateLocation::ItemList,
|
||||
ast::ItemList(_it) => ImmediateLocation::ItemList,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue