Preserve navigation targets for module completions

This commit is contained in:
hgranthorner
2026-08-05 17:10:47 -04:00
parent e7f9d60be8
commit 065e0b0bf4
3 changed files with 46 additions and 5 deletions

View File

@@ -128,8 +128,7 @@ private class JaiCompletionProvider : CompletionProvider<CompletionParameters>()
.forEach { candidate ->
resultSet.addElement(
LookupElementBuilder
.create(candidate.name)
.withPsiElement(candidate.element)
.createWithSmartPointer(candidate.name, candidate.element)
.withTypeText(candidate.kind),
)
}
@@ -152,8 +151,7 @@ private class JaiCompletionProvider : CompletionProvider<CompletionParameters>()
.forEach { candidate ->
resultSet.addElement(
LookupElementBuilder
.create(candidate.name)
.withPsiElement(candidate.element)
.createWithSmartPointer(candidate.name, candidate.element)
.withTypeText(candidate.kind),
)
}