mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Don't complete paths after attributes
This commit is contained in:
parent
9ea6ee6b27
commit
11115ebad8
7 changed files with 151 additions and 163 deletions
|
@ -44,7 +44,17 @@ fn completion_list_with_config(config: CompletionConfig, code: &str) -> String {
|
|||
}
|
||||
|
||||
fn check(ra_fixture: &str, expect: Expect) {
|
||||
let actual = completion_list(ra_fixture);
|
||||
let base = r#"#[rustc_builtin_macro]
|
||||
pub macro Clone {}
|
||||
enum Enum { Variant }
|
||||
struct Struct {}
|
||||
#[macro_export]
|
||||
macro_rules! foo {}
|
||||
mod bar {}
|
||||
const CONST: () = ();
|
||||
trait Trait {}
|
||||
"#;
|
||||
let actual = completion_list(&format!("{}{}", base, ra_fixture));
|
||||
expect.assert_eq(&actual)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue