File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
ghcide/session-loader/Development/IDE Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -739,17 +739,19 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir = do
739
739
catchError file hieYaml $ do
740
740
result@ (_, deps) <- consultCradle file
741
741
-- add the deps to the Shake graph
742
- let addDependency fp = do
743
- -- VSCode uses absolute paths in its filewatch notifications
744
- let nfp = toNormalizedFilePath' fp
745
- itExists <- getFileExists nfp
746
- when itExists $ void $ do use_ GetModificationTime nfp
747
742
mapM_ addDependency deps
748
743
return $ Just result
749
744
where
750
745
catchError file hieYaml f =
751
- f `Safe.catch` \ e ->
746
+ f `Safe.catch` \ e -> do
747
+ -- install dep so it can be recorvered
748
+ mapM_ addDependency hieYaml
752
749
return $ Just (([renderPackageSetupException file e], Nothing ), maybe [] pure hieYaml)
750
+ addDependency fp = do
751
+ -- VSCode uses absolute paths in its filewatch notifications
752
+ let nfp = toNormalizedFilePath' fp
753
+ itExists <- getFileExists nfp
754
+ when itExists $ void $ do use_ GetModificationTime nfp
753
755
754
756
cradleLocRule :: Rules ()
755
757
cradleLocRule = defineNoDiagnostics (cmapWithPrio LogShake recorder) $ \ CradleLoc file -> do
You can’t perform that action at this time.
0 commit comments