Skip to content

Commit 2314ccd

Browse files
committed
Explain why apply is ignored
1 parent e52ceae commit 2314ccd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,9 @@ usesWithStale :: IdeRule k v
874874
=> k -> [NormalizedFilePath] -> Action [Maybe (v, PositionMapping)]
875875
usesWithStale key files = do
876876
_ <- apply (map (Q . (key,)) files)
877+
-- We don't look at the result of the 'apply' since 'lastValue' will
878+
-- return the most recent successfully computed value regardless of
879+
-- whether the rule succeeded or not.
877880
mapM (lastValue key) files
878881

879882
-- | Define a new Rule with early cutoff

0 commit comments

Comments
 (0)