diff options
author | Kirill Bulatov <[email protected]> | 2020-12-07 22:46:56 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-12-07 23:07:20 +0000 |
commit | 3183ff3a7b1fbcf3cb5379cf162a3d769a21be7a (patch) | |
tree | 5aa366155109b6f564f0f0a021fe2e43c0ac1bc9 /crates/completion/src/render/macro_.rs | |
parent | 9656ceb8963273047dab4ee9f3d0b19976890599 (diff) |
Disable the completion for no corresponding client resolve capabilities
Diffstat (limited to 'crates/completion/src/render/macro_.rs')
-rw-r--r-- | crates/completion/src/render/macro_.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/completion/src/render/macro_.rs b/crates/completion/src/render/macro_.rs index bdbc642ca..eb3209bee 100644 --- a/crates/completion/src/render/macro_.rs +++ b/crates/completion/src/render/macro_.rs | |||
@@ -50,10 +50,7 @@ impl<'a> MacroRender<'a> { | |||
50 | .kind(CompletionItemKind::Macro) | 50 | .kind(CompletionItemKind::Macro) |
51 | .set_documentation(self.docs.clone()) | 51 | .set_documentation(self.docs.clone()) |
52 | .set_deprecated(self.ctx.is_deprecated(self.macro_)) | 52 | .set_deprecated(self.ctx.is_deprecated(self.macro_)) |
53 | .add_import( | 53 | .add_import(import_to_add) |
54 | import_to_add, | ||
55 | self.ctx.completion.config.resolve_additional_edits_lazily(), | ||
56 | ) | ||
57 | .detail(self.detail()); | 54 | .detail(self.detail()); |
58 | 55 | ||
59 | let needs_bang = self.needs_bang(); | 56 | let needs_bang = self.needs_bang(); |