@@ -22,7 +22,6 @@ module Development.IDE.Core.FileStore(
2222 registerFileWatches ,
2323 shareFilePath ,
2424 Log (.. ),
25- setSomethingModifiedWait ,
2625 ) where
2726
2827import Control.Concurrent.STM.Stats (STM , atomically )
@@ -280,7 +279,7 @@ setFileModified recorder vfs state saved nfp actionBefore = do
280279 AlwaysCheck -> True
281280 CheckOnSave -> saved
282281 _ -> False
283- restartShakeSession (shakeExtras state) ShouldNotWait vfs (fromNormalizedFilePath nfp ++ " (modified)" ) ([mkDelayedAction " ParentTC" L. Debug (typecheckParentsAction recorder nfp) | checkParents]) $ do
282+ restartShakeSession (shakeExtras state) vfs (fromNormalizedFilePath nfp ++ " (modified)" ) ([mkDelayedAction " ParentTC" L. Debug (typecheckParentsAction recorder nfp) | checkParents]) $ do
284283 keys<- actionBefore
285284 return (toKey GetModificationTime nfp: keys)
286285
@@ -300,16 +299,11 @@ typecheckParentsAction recorder nfp = do
300299-- | Note that some keys have been modified and restart the session
301300-- Only valid if the virtual file system was initialised by LSP, as that
302301-- independently tracks which files are modified.
303- setSomethingModified' :: ShouldWait -> VFSModified -> IdeState -> String -> IO [Key ] -> IO ()
304- setSomethingModified' shouldWait vfs state reason actionBetweenSession = do
302+ setSomethingModified :: VFSModified -> IdeState -> String -> IO [Key ] -> IO ()
303+ setSomethingModified vfs state reason actionBetweenSession = do
305304 -- Update database to remove any files that might have been renamed/deleted
306305 atomically $ writeTaskQueue (indexQueue $ hiedbWriter $ shakeExtras state) (\ withHieDb -> withHieDb deleteMissingRealFiles)
307- void $ restartShakeSession (shakeExtras state) shouldWait vfs reason [] actionBetweenSession
308- setSomethingModified :: VFSModified -> IdeState -> String -> IO [Key ] -> IO ()
309- setSomethingModified vfs state reason actionBetweenSession = setSomethingModified' ShouldNotWait vfs state reason actionBetweenSession
310-
311- setSomethingModifiedWait :: VFSModified -> IdeState -> String -> IO [Key ] -> IO ()
312- setSomethingModifiedWait vfs state reason actionBetweenSession = setSomethingModified' ShouldWait vfs state reason actionBetweenSession
306+ void $ restartShakeSession (shakeExtras state) vfs reason [] actionBetweenSession
313307
314308registerFileWatches :: [String ] -> LSP. LspT Config IO Bool
315309registerFileWatches globs = do
0 commit comments