1 //! Settings for tweaking completion.
3 //! The fun thing here is `SnippetCap` -- this type can only be created in this
4 //! module, and we use to statically check that we only produce snippet
5 //! completions if we are allowed to.
7 use ide_db::helpers::{insert_use::InsertUseConfig, SnippetCap};
9 #[derive(Clone, Debug, PartialEq, Eq)]
10 pub struct CompletionConfig {
11 pub enable_postfix_completions: bool,
12 pub enable_imports_on_the_fly: bool,
13 pub add_call_parenthesis: bool,
14 pub add_call_argument_snippets: bool,
15 pub snippet_cap: Option<SnippetCap>,
16 pub insert_use: InsertUseConfig,