Implement postfix completions feature flag

This commit is contained in:
Greg 2019-11-11 22:55:10 -05:00
parent 602f11f27b
commit eb72156094
No known key found for this signature in database
GPG key ID: 2E44FAEEDC94B1E2
3 changed files with 7 additions and 0 deletions

View file

@ -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,