Skip to content

Commit

Permalink
Reset diagnostics ONLY for modified modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Apr 1, 2024
1 parent 8e0af0c commit 730102c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rzk/src/Language/Rzk/VSCode/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ typecheckFromConfigFile = do
-- Reset all published diags
-- TODO: remove this after properly grouping by path below, after which there can be an empty list of errors
-- TODO: handle clearing diagnostics for files that got removed from the project (rzk.yaml)
forM_ paths $ \path -> do
forM_ modifiedFiles $ \path -> do
publishDiagnostics 0 (filePathToNormalizedUri path) Nothing (partitionBySource [])

-- Report parse errors to the client
Expand Down

0 comments on commit 730102c

Please sign in to comment.