Skip to content

Commit 91ceb8e

Browse files
kasiaMarektgodzik
authored andcommitted
fix: deduplicate scaladoc
[Cherry-picked 7e50b1e]
1 parent 3b85e8b commit 91ceb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presentation-compiler/src/main/dotty/tools/pc/CompletionItemResolver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ object CompletionItemResolver extends ItemResolver:
7575
else gsymDoc
7676
else
7777
val companionDoc = docs(companion)
78-
if companionDoc.isEmpty() then gsymDoc
78+
if companionDoc.isEmpty() || companionDoc == gsymDoc then gsymDoc
7979
else if gsymDoc.isEmpty() then companionDoc
8080
else
8181
List(

0 commit comments

Comments
 (0)