Skip to content

Commit 7e50b1e

Browse files
committed
fix: deduplicate scaladoc
1 parent eaa827e commit 7e50b1e

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

+1-1
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)