Skip to content

Commit

Permalink
Expose SymbolKind in hover extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Dec 8, 2024
1 parent 619a9b4 commit 178dda2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Curry/LanguageServer/Handlers/TextDocument/Hover.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ extensionHover store ast@(moduleIdentifier -> mid) pos@(J.Position l c) uri e =
, ("type", fromMaybe "" ((.printedType) =<< symbol))
, ("identifier", maybe "" (.ident) symbol)
, ("module", maybe "" symbolParentIdent symbol)
, ("symbolKind", maybe "" (T.pack . show . (.kind)) symbol)
] :: [(T.Text, T.Text)]
applyParam p = T.replace ("{" <> p <> "}")
evalTemplate t = foldr (uncurry applyParam) t templateParams
Expand Down

0 comments on commit 178dda2

Please sign in to comment.