Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/item.rs')
-rw-r--r--crates/ide-completion/src/item.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ide-completion/src/item.rs b/crates/ide-completion/src/item.rs
index 6e5c2a9386..4774fe9db7 100644
--- a/crates/ide-completion/src/item.rs
+++ b/crates/ide-completion/src/item.rs
@@ -10,8 +10,8 @@ use syntax::{SmolStr, TextRange};
use text_edit::TextEdit;
use crate::{
- context::CompletionContext,
- render::{render_resolution, RenderContext},
+ context::{CompletionContext, PathCompletionCtx},
+ render::{render_path_resolution, RenderContext},
};
/// `CompletionItem` describes a single completion variant in the editor pop-up.
@@ -434,10 +434,11 @@ pub(crate) struct Builder {
impl Builder {
pub(crate) fn from_resolution(
ctx: &CompletionContext,
+ path_ctx: &PathCompletionCtx,
local_name: hir::Name,
resolution: hir::ScopeDef,
) -> Self {
- render_resolution(RenderContext::new(ctx), local_name, resolution)
+ render_path_resolution(RenderContext::new(ctx), path_ctx, local_name, resolution)
}
pub(crate) fn build(self) -> CompletionItem {