@@ -22,7 +22,6 @@ module Development.IDE.Core.FileStore(
22
22
registerFileWatches ,
23
23
shareFilePath ,
24
24
Log (.. ),
25
- setSomethingModifiedWait ,
26
25
) where
27
26
28
27
import Control.Concurrent.STM.Stats (STM , atomically )
@@ -280,7 +279,7 @@ setFileModified recorder vfs state saved nfp actionBefore = do
280
279
AlwaysCheck -> True
281
280
CheckOnSave -> saved
282
281
_ -> 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
284
283
keys<- actionBefore
285
284
return (toKey GetModificationTime nfp: keys)
286
285
@@ -300,16 +299,11 @@ typecheckParentsAction recorder nfp = do
300
299
-- | Note that some keys have been modified and restart the session
301
300
-- Only valid if the virtual file system was initialised by LSP, as that
302
301
-- 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
305
304
-- Update database to remove any files that might have been renamed/deleted
306
305
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
313
307
314
308
registerFileWatches :: [String ] -> LSP. LspT Config IO Bool
315
309
registerFileWatches globs = do
0 commit comments