Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/literal.rs')
| -rw-r--r-- | crates/ide-completion/src/render/literal.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ide-completion/src/render/literal.rs b/crates/ide-completion/src/render/literal.rs index b89030990e..7b0555d5a4 100644 --- a/crates/ide-completion/src/render/literal.rs +++ b/crates/ide-completion/src/render/literal.rs @@ -2,6 +2,7 @@ use hir::{db::HirDatabase, Documentation, HasAttrs, StructKind}; use ide_db::SymbolKind; +use syntax::AstNode; use crate::{ context::{CompletionContext, PathCompletionCtx, PathKind}, @@ -117,7 +118,7 @@ fn render( ..ctx.completion_relevance() }); if let Some(ref_match) = compute_ref_match(completion, &ty) { - item.ref_match(ref_match); + item.ref_match(ref_match, path_ctx.path.syntax().text_range().start()); } if let Some(import_to_add) = ctx.import_to_add { |