mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
fix: Fix completions not working after attributes
This commit is contained in:
parent
db9930b986
commit
2aa22730f1
3 changed files with 11 additions and 11 deletions
|
@ -371,10 +371,7 @@ impl<'a> CompletionContext<'a> {
|
|||
// FIXME: This shouldn't exist
|
||||
pub(crate) fn is_path_disallowed(&self) -> bool {
|
||||
self.previous_token_is(T![unsafe])
|
||||
|| matches!(
|
||||
self.prev_sibling,
|
||||
Some(ImmediatePrevSibling::Attribute | ImmediatePrevSibling::Visibility)
|
||||
)
|
||||
|| matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility))
|
||||
|| matches!(
|
||||
self.completion_location,
|
||||
Some(ImmediateLocation::RecordPat(_) | ImmediateLocation::RecordExpr(_))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue