1 //! Settings for tweaking assists.
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 //! assists if we are allowed to.
7 use ide_db::helpers::{insert_use::InsertUseConfig, SnippetCap};
11 #[derive(Clone, Debug, PartialEq, Eq)]
12 pub struct AssistConfig {
13 pub snippet_cap: Option<SnippetCap>,
14 pub allowed: Option<Vec<AssistKind>>,
15 pub insert_use: InsertUseConfig,