Skip to content

Commit 5c384a4

Browse files
committed
Remove overly specific logging of diagnostics from hls-cabal-plugin
1 parent 996d6a1 commit 5c384a4

File tree

1 file changed

+0
-5
lines changed
  • plugins/hls-cabal-plugin/src/Ide/Plugin

1 file changed

+0
-5
lines changed

plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import qualified Language.LSP.VFS as VFS
4242

4343
data Log
4444
= LogModificationTime NormalizedFilePath (Maybe FileVersion)
45-
| LogDiagnostics NormalizedFilePath [FileDiagnostic]
4645
| LogShake Shake.Log
4746
| LogDocOpened Uri
4847
| LogDocModified Uri
@@ -55,8 +54,6 @@ instance Pretty Log where
5554
LogShake log' -> pretty log'
5655
LogModificationTime nfp modTime ->
5756
"Modified:" <+> pretty (fromNormalizedFilePath nfp) <+> pretty (show modTime)
58-
LogDiagnostics nfp diags ->
59-
"Diagnostics for" <+> pretty (fromNormalizedFilePath nfp) <> ":" <+> pretty (show diags)
6057
LogDocOpened uri ->
6158
"Opened text document:" <+> pretty (getUri uri)
6259
LogDocModified uri ->
@@ -145,10 +142,8 @@ cabalRules recorder = do
145142
Left (_cabalVersion, pErrorNE) -> do
146143
let errorDiags = NE.toList $ NE.map (Diagnostics.errorDiagnostic file) pErrorNE
147144
allDiags = errorDiags <> warningDiags
148-
log' Debug $ LogDiagnostics file allDiags
149145
pure (allDiags, Nothing)
150146
Right _ -> do
151-
log' Debug $ LogDiagnostics file warningDiags
152147
pure (warningDiags, Just ())
153148

154149
action $ do

0 commit comments

Comments
 (0)