mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-17 23:22:04 +03:00
Restored filepaths to their error messages (#862)
This commit is contained in:
parent
8483aed07c
commit
a410abc82c
@ -187,10 +187,10 @@ prettyDiagnostics :: [LSP.Diagnostic] -> Doc SyntaxClass
|
|||||||
prettyDiagnostics = vcat . map prettyDiagnostic
|
prettyDiagnostics = vcat . map prettyDiagnostic
|
||||||
|
|
||||||
prettyDiagnostic :: LSP.Diagnostic -> Doc SyntaxClass
|
prettyDiagnostic :: LSP.Diagnostic -> Doc SyntaxClass
|
||||||
prettyDiagnostic LSP.Diagnostic{..} =
|
prettyDiagnostic d@LSP.Diagnostic{..} =
|
||||||
vcat
|
vcat
|
||||||
[slabel_ "Range: "
|
[ slabel_ "File: " $ pretty $ view dFilePath d
|
||||||
$ prettyRange _range
|
, slabel_ "Range: " $ prettyRange _range
|
||||||
, slabel_ "Source: " $ pretty _source
|
, slabel_ "Source: " $ pretty _source
|
||||||
, slabel_ "Severity:" $ pretty $ show sev
|
, slabel_ "Severity:" $ pretty $ show sev
|
||||||
, slabel_ "Message: "
|
, slabel_ "Message: "
|
||||||
|
Loading…
Reference in New Issue
Block a user