Skip to content

Commit 7e31d3e

Browse files
jacggaryverhaegen-da
authored andcommitted
hie-core: Remove code pretty printing from diagnostic output (#2810)
In moving from v. 0.15 to 0.16, haskell-lsp changed the type of the value which ended up being passed to `pretty` from `Maybe Text` to `Maybe LSP.NumberOrString`, thereby breaking the line of code which is removed in this commit. After discussion with @ndmitchell, it was observed that this code was never useful, and fixing it was not worth the trouble.
1 parent 52b745c commit 7e31d3e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Development/IDE/Types/Diagnostics.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ prettyDiagnostic (fp, LSP.Diagnostic{..}) =
8080
LSP.DsInfo -> annotate $ color Blue
8181
LSP.DsHint -> annotate $ color Magenta
8282
$ stringParagraphs _message
83-
, slabel_ "Code:" $ pretty _code
8483
]
8584
where
8685
sev = fromMaybe LSP.DsError _severity

0 commit comments

Comments
 (0)