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.
2 parents 2f685d2 + 6dd57bf commit 6fd349aCopy full SHA for 6fd349a
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