mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Implement postfix completions feature flag
This commit is contained in:
parent
602f11f27b
commit
eb72156094
3 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,10 @@ use crate::{
|
|||
};
|
||||
|
||||
pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
|
||||
if ctx.db.feature_flags.get("completions.enable-postfix") == false {
|
||||
return;
|
||||
}
|
||||
|
||||
let dot_receiver = match &ctx.dot_receiver {
|
||||
Some(it) => it,
|
||||
None => return,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue