mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Remove no_completions_required from CompletionContext
This commit is contained in:
parent
119ba82e4b
commit
0b54d31359
6 changed files with 52 additions and 94 deletions
|
@ -144,12 +144,6 @@ pub fn completions(
|
|||
) -> Option<Completions> {
|
||||
let ctx = CompletionContext::new(db, position, config)?;
|
||||
|
||||
if ctx.no_completion_required() {
|
||||
cov_mark::hit!(no_completion_required);
|
||||
// No work required here.
|
||||
return None;
|
||||
}
|
||||
|
||||
let mut acc = Completions::default();
|
||||
completions::attribute::complete_attribute(&mut acc, &ctx);
|
||||
completions::attribute::complete_derive(&mut acc, &ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue