Skip to content

Commit 1e2a291

Browse files
committed
reuse only Successful values from the store
1 parent 2b0a9af commit 1e2a291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ defineEarlyCutoff' doDiagnostics key file old mode action = do
989989
v <- liftIO $ getValues state key file
990990
case v of
991991
-- No changes in the dependencies and we have
992-
-- an existing result.
993-
Just (v, diags) -> do
992+
-- an existing successful result.
993+
Just (v@Succeeded{}, diags) -> do
994994
when doDiagnostics $
995995
updateFileDiagnostics file (Key key) extras $ map (\(_,y,z) -> (y,z)) $ Vector.toList diags
996996
return $ Just $ RunResult ChangedNothing old $ A v

0 commit comments

Comments
 (0)