Skip to content

Commit d3916eb

Browse files
committed
Markdownify rendering
1 parent fb02b26 commit d3916eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

unison-cli/src/Unison/LSP/Hover.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ hoverInfo uri pos =
102102
LD.TermReferent ref -> do
103103
typ <- LSPQ.getTypeOfReferent uri ref
104104
pure $ renderTypeSigForHover pped symAtCursor typ
105-
pure . Text.unlines $ [markdownify typeSig] <> renderedDocs
105+
pure . Text.unlines $ [typeSig] <> renderedDocs
106106

107107
renderTypeSigForHover :: (Var v) => PPED.PrettyPrintEnvDecl -> Text -> Type.Type v a -> Text
108108
renderTypeSigForHover pped name typ =
109109
let renderedType = Text.pack $ TypePrinter.prettyStr (Just prettyWidth) (PPED.suffixifiedPPE pped) typ
110-
in (name <> " : " <> renderedType)
110+
in markdownify (name <> " : " <> renderedType)
111111

112112
hoverInfoForLiteral :: MaybeT Lsp Text
113113
hoverInfoForLiteral =

unison-cli/tests/Unison/Test/LSP.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ unusedBindingLocations =
445445
[ ( "Unused binding in let block",
446446
[here|term =
447447
usedOne = true
448-
«unused = "unused"»
448+
«unused» = "unused"
449449
usedTwo = false
450450
usedOne && usedTwo
451451
|]

0 commit comments

Comments
 (0)