From 4eabcb2c01209065a231e616ba646ba63f68f00d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 7 Jun 2021 12:29:46 +0200 Subject: Move more things into PathCompletionContext --- crates/ide_completion/src/render.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates/ide_completion/src/render.rs') diff --git a/crates/ide_completion/src/render.rs b/crates/ide_completion/src/render.rs index a49a60711..750694432 100644 --- a/crates/ide_completion/src/render.rs +++ b/crates/ide_completion/src/render.rs @@ -275,8 +275,12 @@ impl<'a> Render<'a> { }; // Add `<>` for generic types - if self.ctx.completion.is_path_type - && !self.ctx.completion.has_type_args + if self + .ctx + .completion + .path_context + .as_ref() + .map_or(false, |it| it.is_path_type && !it.has_type_args) && self.ctx.completion.config.add_call_parenthesis { if let Some(cap) = self.ctx.snippet_cap() { -- cgit v1.2.3