diff options
Diffstat (limited to 'crates/completion/src/config.rs')
-rw-r--r-- | crates/completion/src/config.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/completion/src/config.rs b/crates/completion/src/config.rs index eacdd3449..487c1d0f1 100644 --- a/crates/completion/src/config.rs +++ b/crates/completion/src/config.rs | |||
@@ -36,12 +36,10 @@ impl CompletionConfig { | |||
36 | self.snippet_cap = if yes { Some(SnippetCap { _private: () }) } else { None } | 36 | self.snippet_cap = if yes { Some(SnippetCap { _private: () }) } else { None } |
37 | } | 37 | } |
38 | 38 | ||
39 | /// Whether the completions' additional edits are calculated later, during a resolve request or not. | 39 | /// Whether the completions' additional edits are calculated when sending an initional completions list |
40 | /// See `CompletionResolveCapability` for the details. | 40 | /// or later, in a separate resolve request. |
41 | pub fn resolve_edits_immediately(&self) -> bool { | 41 | pub fn resolve_additional_edits_lazily(&self) -> bool { |
42 | !self | 42 | self.active_resolve_capabilities.contains(&CompletionResolveCapability::AdditionalTextEdits) |
43 | .active_resolve_capabilities | ||
44 | .contains(&CompletionResolveCapability::AdditionalTextEdits) | ||
45 | } | 43 | } |
46 | } | 44 | } |
47 | 45 | ||