diff options
Diffstat (limited to 'crates/completion/src/config.rs')
-rw-r--r-- | crates/completion/src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/completion/src/config.rs b/crates/completion/src/config.rs index 736af455e..e9a02aeb8 100644 --- a/crates/completion/src/config.rs +++ b/crates/completion/src/config.rs | |||
@@ -29,6 +29,10 @@ impl CompletionConfig { | |||
29 | pub fn allow_snippets(&mut self, yes: bool) { | 29 | pub fn allow_snippets(&mut self, yes: bool) { |
30 | self.snippet_cap = if yes { Some(SnippetCap { _private: () }) } else { None } | 30 | self.snippet_cap = if yes { Some(SnippetCap { _private: () }) } else { None } |
31 | } | 31 | } |
32 | |||
33 | pub fn should_resolve_immediately(&self) -> bool { | ||
34 | !self.resolve_capabilities.contains(&CompletionResolveCapability::AdditionalTextEdits) | ||
35 | } | ||
32 | } | 36 | } |
33 | 37 | ||
34 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] | 38 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] |