File tree 2 files changed +4
-0
lines changed
session-loader/Development/IDE
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ runWithDb fp k = do
135
135
`catch` \ IncompatibleSchemaVersion {} -> removeFile fp
136
136
withHieDb fp $ \ writedb -> do
137
137
initConn writedb
138
+ -- Clear the index of any files that might have been deleted since the last run
139
+ deleteMissingRealFiles writedb
138
140
_ <- garbageCollectTypeNames writedb
139
141
chan <- newTQueueIO
140
142
withAsync (writerThread writedb chan) $ \ _ -> do
Original file line number Diff line number Diff line change @@ -232,4 +232,6 @@ setSomethingModified state = do
232
232
VFSHandle {.. } <- getIdeGlobalState state
233
233
when (isJust setVirtualFileContents) $
234
234
fail " setSomethingModified can't be called on this type of VFSHandle"
235
+ -- Update database to remove any files that might have been renamed/deleted
236
+ writeTQueue (indexQueue $ hiedbWriter $ shakeExtras state) deleteMissingRealFiles
235
237
void $ shakeRestart state []
You can’t perform that action at this time.
0 commit comments