Files
rust/crates/completion/src/config.rs

18 lines
612 B
Rust
Raw Normal View History

2020-04-24 02:06:12 +02:00
//! Settings for tweaking completion.
//!
//! The fun thing here is `SnippetCap` -- this type can only be created in this
//! module, and we use to statically check that we only produce snippet
//! completions if we are allowed to.
use ide_db::helpers::{insert_use::InsertUseConfig, SnippetCap};
2020-11-10 23:40:07 +02:00
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CompletionConfig {
pub enable_postfix_completions: bool,
2020-12-08 14:27:18 +02:00
pub enable_autoimport_completions: bool,
pub add_call_parenthesis: bool,
pub add_call_argument_snippets: bool,
2020-04-24 02:06:12 +02:00
pub snippet_cap: Option<SnippetCap>,
pub insert_use: InsertUseConfig,
2020-04-24 02:06:12 +02:00
}