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
|
||||
|
||||
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: "
|
||||
|
Loading…
Reference in New Issue
Block a user