mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Only complete ancestors and self in visibility path completions
This commit is contained in:
parent
3956a5b757
commit
ccde0bcd1f
2 changed files with 44 additions and 13 deletions
|
@ -40,7 +40,6 @@ pub(in $0)
|
|||
|
||||
#[test]
|
||||
fn qualified() {
|
||||
// FIXME: only show parent modules
|
||||
check(
|
||||
r#"
|
||||
mod foo {
|
||||
|
@ -50,7 +49,21 @@ mod foo {
|
|||
mod bar {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
md bar
|
||||
md foo
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
mod qux {
|
||||
mod foo {
|
||||
pub(in crate::qux::$0)
|
||||
}
|
||||
mod baz {}
|
||||
}
|
||||
|
||||
mod bar {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
md foo
|
||||
"#]],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue