Only complete ancestors and self in visibility path completions

This commit is contained in:
Lukas Wirth 2021-07-21 18:54:12 +02:00
parent 3956a5b757
commit ccde0bcd1f
2 changed files with 44 additions and 13 deletions

View file

@ -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
"#]],
);