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 0b4cc46 commit 6c42b20Copy full SHA for 6c42b20
src/Workspace.cpp
@@ -349,6 +349,13 @@ std::optional<lsp::Hover> WorkspaceFolder::hover(const lsp::HoverParams& params)
349
return std::nullopt;
350
type = typeFun->type;
351
}
352
+ else if (auto astType = node->asType())
353
+ {
354
+ if (auto ty = module->astResolvedTypes.find(astType))
355
356
+ type = *ty;
357
+ }
358
359
else if (auto local = exprOrLocal.getLocal()) // TODO: can we just use node here instead of also calling exprOrLocal?
360
{
361
type = scope->lookup(local);
0 commit comments