Skip to content

Commit

Permalink
deduplicate docs for symbol and its companion
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Dec 4, 2024
1 parent ff1ac2d commit 2a7e016
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CompletionItemResolver(
}
} else {
val companionDoc = docs(companion)
if (companionDoc.isEmpty) gsymDoc
if (companionDoc.isEmpty || companionDoc == gsymDoc) gsymDoc
else if (gsymDoc.isEmpty) companionDoc
else {
List(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object CompletionItemResolver extends ItemResolver:
else gsymDoc
else
val companionDoc = docs(companion)
if companionDoc.isEmpty then gsymDoc
if companionDoc.isEmpty || companionDoc == gsymDoc then gsymDoc
else if gsymDoc.isEmpty then companionDoc
else
List(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class SignatureHelpSuite extends BaseSignatureHelpSuite {
|
|
""".stripMargin,
"""|apply(viewId: String, nodeUri: String, label: String, command: String = ..., icon: String = ..., tooltip: String = ..., collapseState: String = ...): TreeViewNode
"""|apply(viewId: String, nodeUri: String, label: String, command: String = null, icon: String = null, tooltip: String = null, collapseState: String = null): TreeViewNode
| ^^^^^^^^^^^^^^
|""".stripMargin,
compat = Map(
Expand Down

0 comments on commit 2a7e016

Please sign in to comment.