aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/render/macro_.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-12-07 22:46:56 +0000
committerKirill Bulatov <[email protected]>2020-12-07 23:07:20 +0000
commit3183ff3a7b1fbcf3cb5379cf162a3d769a21be7a (patch)
tree5aa366155109b6f564f0f0a021fe2e43c0ac1bc9 /crates/completion/src/render/macro_.rs
parent9656ceb8963273047dab4ee9f3d0b19976890599 (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_.rs5
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();