Skip to content

Commit aa70ed3

Browse files
committed
No need to call .toString on .show
1 parent e626618 commit aa70ed3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

language-server/src/dotty/tools/languageserver/DottyLanguageServer.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ class DottyLanguageServer extends LanguageServer
348348
else {
349349
val symbol = Interactive.enclosingSourceSymbol(trees, pos)
350350
val docComment = ctx.docCtx.flatMap(_.docstring(symbol))
351-
val content = hoverContent(tpw.show.toString, docComment)
351+
val content = hoverContent(tpw.show, docComment)
352352
new Hover(content, null)
353353
}
354354
}
@@ -459,9 +459,9 @@ object DottyLanguageServer {
459459
CIK.Field
460460
}
461461

462-
val label = sym.name.show.toString
462+
val label = sym.name.show
463463
val item = new lsp4j.CompletionItem(label)
464-
item.setDetail(sym.info.widenTermRefExpr.show.toString)
464+
item.setDetail(sym.info.widenTermRefExpr.show)
465465
item.setKind(completionItemKind(sym))
466466
item
467467
}
@@ -503,10 +503,10 @@ object DottyLanguageServer {
503503
SK.Field
504504
}
505505

506-
val name = sym.name.show.toString
506+
val name = sym.name.show
507507
val containerName =
508508
if (sym.owner.exists && !sym.owner.isEmptyPackage)
509-
sym.owner.name.show.toString
509+
sym.owner.name.show
510510
else
511511
null
512512

0 commit comments

Comments
 (0)