We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fcbfdb commit 6dd57bfCopy full SHA for 6dd57bf
language-server/src/dotty/tools/languageserver/DottyLanguageServer.scala
@@ -353,7 +353,7 @@ class DottyLanguageServer extends LanguageServer
353
val tp = Interactive.enclosingType(trees, pos)
354
val tpw = tp.widenTermRefExpr
355
356
- if (tpw == NoType) null // null here indicates that no response should be sent
+ if (tp.isError || tpw == NoType) null // null here indicates that no response should be sent
357
else {
358
val symbol = Interactive.enclosingSourceSymbol(trees, pos)
359
val docComment = ctx.docCtx.flatMap(_.docstring(symbol))
0 commit comments