File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
language-server/src/dotty/tools/languageserver Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ class DottyLanguageServer extends LanguageServer
348
348
else {
349
349
val symbol = Interactive .enclosingSourceSymbol(trees, pos)
350
350
val docComment = ctx.docCtx.flatMap(_.docstring(symbol))
351
- val content = hoverContent(tpw.show.toString , docComment)
351
+ val content = hoverContent(tpw.show, docComment)
352
352
new Hover (content, null )
353
353
}
354
354
}
@@ -459,9 +459,9 @@ object DottyLanguageServer {
459
459
CIK .Field
460
460
}
461
461
462
- val label = sym.name.show.toString
462
+ val label = sym.name.show
463
463
val item = new lsp4j.CompletionItem (label)
464
- item.setDetail(sym.info.widenTermRefExpr.show.toString )
464
+ item.setDetail(sym.info.widenTermRefExpr.show)
465
465
item.setKind(completionItemKind(sym))
466
466
item
467
467
}
@@ -503,10 +503,10 @@ object DottyLanguageServer {
503
503
SK .Field
504
504
}
505
505
506
- val name = sym.name.show.toString
506
+ val name = sym.name.show
507
507
val containerName =
508
508
if (sym.owner.exists && ! sym.owner.isEmptyPackage)
509
- sym.owner.name.show.toString
509
+ sym.owner.name.show
510
510
else
511
511
null
512
512
You can’t perform that action at this time.
0 commit comments