This repository was archived by the owner on Jan 2, 2021. It is now read-only.
File tree 5 files changed +9
-9
lines changed
session-loader/Development/IDE
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ import qualified Data.HashMap.Strict as HashMap
50
50
import qualified Data.Aeson as J
51
51
52
52
import HIE.Bios.Cradle
53
+ import Development.IDE (action )
53
54
54
55
ghcideVersion :: IO String
55
56
ghcideVersion = do
@@ -113,7 +114,7 @@ main = do
113
114
}
114
115
logLevel = if argsVerbose then minBound else Info
115
116
debouncer <- newAsyncDebouncer
116
- initialise caps (mainRule >> pluginRules plugins)
117
+ initialise caps (mainRule >> pluginRules plugins >> action kick )
117
118
getLspId event wProg wIndefProg (logger logLevel) debouncer options vfs
118
119
else do
119
120
-- GHC produces messages with UTF8 in them, so make sure the terminal doesn't error
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import Data.IORef
31
31
import Data.Maybe
32
32
import Data.Time.Clock
33
33
import Data.Version
34
- import Development.IDE.Core.OfInterest
35
34
import Development.IDE.Core.Shake
36
35
import Development.IDE.Core.RuleTypes
37
36
import Development.IDE.GHC.Compat hiding (Target , TargetModule , TargetFile )
@@ -245,7 +244,7 @@ loadSession dir = do
245
244
246
245
-- Invalidate all the existing GhcSession build nodes by restarting the Shake session
247
246
invalidateShakeCache
248
- restartShakeSession [kick ]
247
+ restartShakeSession []
249
248
250
249
-- Typecheck all files in the project on startup
251
250
unless (null cs || not checkProject) $ do
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import System.IO.Error
36
36
import qualified Data.ByteString.Char8 as BS
37
37
import Development.IDE.Types.Diagnostics
38
38
import Development.IDE.Types.Location
39
- import Development.IDE.Core.OfInterest (getFilesOfInterest , kick )
39
+ import Development.IDE.Core.OfInterest (getFilesOfInterest )
40
40
import Development.IDE.Core.RuleTypes
41
41
import Development.IDE.Types.Options
42
42
import qualified Data.Rope.UTF16 as Rope
@@ -226,7 +226,7 @@ setFileModified state saved nfp = do
226
226
VFSHandle {.. } <- getIdeGlobalState state
227
227
when (isJust setVirtualFileContents) $
228
228
fail " setFileModified can't be called on this type of VFSHandle"
229
- shakeRestart state [kick ]
229
+ shakeRestart state []
230
230
when checkParents $
231
231
typecheckParents state nfp
232
232
@@ -252,4 +252,4 @@ setSomethingModified state = do
252
252
VFSHandle {.. } <- getIdeGlobalState state
253
253
when (isJust setVirtualFileContents) $
254
254
fail " setSomethingModified can't be called on this type of VFSHandle"
255
- void $ shakeRestart state [kick ]
255
+ void $ shakeRestart state []
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ modifyFilesOfInterest state f = do
88
88
89
89
-- | Typecheck all the files of interest.
90
90
-- Could be improved
91
- kick :: DelayedAction ()
92
- kick = mkDelayedAction " kick " Debug $ do
91
+ kick :: Action ()
92
+ kick = do
93
93
files <- HashMap. keys <$> getFilesOfInterest
94
94
ShakeExtras {progressUpdate} <- getShakeExtras
95
95
liftIO $ progressUpdate KickStarted
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ data IdeOptions = IdeOptions
95
95
-- that the parsed module contains the result of Opt_KeepRawTokenStream,
96
96
-- which might be necessary for hlint.
97
97
, optCustomDynFlags :: DynFlags -> DynFlags
98
- -- ^ If given, it will be called right after setting up a new cradle,
98
+ -- ^ Will be called right after setting up a new cradle,
99
99
-- allowing to customize the Ghc options used
100
100
}
101
101
You can’t perform that action at this time.
0 commit comments