Restored filepaths to their error messages (#862)

This commit is contained in:
DavidM-D 2019-05-03 08:33:56 +02:00 committed by Moritz Kiefer
parent 8483aed07c
commit a410abc82c

View File

@ -187,10 +187,10 @@ prettyDiagnostics :: [LSP.Diagnostic] -> Doc SyntaxClass
prettyDiagnostics = vcat . map prettyDiagnostic
prettyDiagnostic :: LSP.Diagnostic -> Doc SyntaxClass
prettyDiagnostic LSP.Diagnostic{..} =
prettyDiagnostic d@LSP.Diagnostic{..} =
vcat
[slabel_ "Range: "
$ prettyRange _range
[ slabel_ "File: " $ pretty $ view dFilePath d
, slabel_ "Range: " $ prettyRange _range
, slabel_ "Source: " $ pretty _source
, slabel_ "Severity:" $ pretty $ show sev
, slabel_ "Message: "