Skip to content

Commit

Permalink
adjust for 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Apr 12, 2024
1 parent d55cdbd commit 1ad27c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import scala.meta.internal.metals.CompilerOffsetParams
import scala.meta.internal.metals.CompilerRangeParams
import scala.meta.internal.pc.CompletionItemData
import scala.meta.internal.pc.RangeOffset
import scala.meta.pc.HoverContentType
import scala.meta.pc.OffsetParams
import scala.meta.pc.RangeParams
import scala.meta.pc.VirtualFileParams
Expand All @@ -31,7 +32,6 @@ import org.eclipse.lsp4j.CompletionItem
import org.eclipse.lsp4j.MarkupContent
import org.eclipse.lsp4j.jsonrpc.messages.{Either => JEither}
import org.eclipse.{lsp4j => l}
import scala.meta.pc.HoverContentType

object CommonMtagsEnrichments extends CommonMtagsEnrichments {}
trait CommonMtagsEnrichments {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object HoverMarkup {
}
if (forceExpressionType || optSymbolSignature.isEmpty) {
appendCode(
Option.when(optSymbolSignature.isDefined)("Expression type"),
if (optSymbolSignature.isDefined) Some("Expression type") else None,
expressionType
)
builder.append("\n")
Expand All @@ -53,7 +53,7 @@ object HoverMarkup {
optSymbolSignature.foreach { symbolSignature =>
if (symbolSignature.nonEmpty) {
appendCode(
Option.when(forceExpressionType)("Symbol signature"),
if (forceExpressionType) Some("Symbol signature") else None,
symbolSignature
)
}
Expand Down Expand Up @@ -111,7 +111,7 @@ object HoverMarkup {

if (symbolSignature.nonEmpty)
addCode(
Option.when(forceExpressionType)("Symbol signature"),
if (forceExpressionType) Some("Symbol signature") else None,
symbolSignature
)

Expand Down

0 comments on commit 1ad27c7

Please sign in to comment.