fix: filter unnecessary completions after colon

This commit is contained in:
yue4u 2022-11-12 22:33:40 +09:00
parent 45ec315e01
commit f26d5484d8
5 changed files with 162 additions and 16 deletions

View file

@ -607,6 +607,30 @@ fn attr_in_source_file_end() {
);
}
#[test]
fn invalid_path() {
check(
r#"
//- proc_macros: identity
#[proc_macros:::$0]
struct Foo;
"#,
expect![[r#""#]],
);
check(
r#"
//- minicore: derive, copy
mod foo {
pub use Copy as Bar;
}
#[derive(foo:::::$0)]
struct Foo;
"#,
expect![""],
);
}
mod cfg {
use super::*;