@@ -42,8 +42,9 @@ import Development.IDE.Core.Rules (GhcSessionIO (GhcSession
42
42
import Development.IDE.Core.Service (initialise , runAction )
43
43
import Development.IDE.Core.Shake (IdeState (shakeExtras ),
44
44
ShakeExtras (state ),
45
- uses )
45
+ shakeSessionInit , uses )
46
46
import Development.IDE.Core.Tracing (measureMemory )
47
+ import Development.IDE.Graph (action )
47
48
import Development.IDE.LSP.LanguageServer (runLanguageServer )
48
49
import Development.IDE.Plugin (Plugin (pluginHandlers , pluginRules ))
49
50
import Development.IDE.Plugin.HLS (asGhcIdePlugin )
@@ -61,7 +62,6 @@ import Development.IDE.Types.Options (IdeGhcSession,
61
62
clientSupportsProgress ,
62
63
defaultIdeOptions )
63
64
import Development.IDE.Types.Shake (Key (Key ))
64
- import Development.IDE.Graph (action )
65
65
import GHC.IO.Encoding (setLocaleEncoding )
66
66
import GHC.IO.Handle (hDuplicate )
67
67
import HIE.Bios.Cradle (findCradle )
@@ -261,6 +261,7 @@ defaultMain Arguments{..} = do
261
261
, optCheckProject = pure False
262
262
}
263
263
ide <- initialise argsDefaultHlsConfig rules Nothing logger debouncer options vfs hiedb hieChan
264
+ shakeSessionInit ide
264
265
registerIdeConfiguration (shakeExtras ide) $ IdeConfiguration mempty (hashed Nothing )
265
266
266
267
putStrLn " \n Step 4/4: Type checking the files"
@@ -309,6 +310,7 @@ defaultMain Arguments{..} = do
309
310
optCheckProject = pure False
310
311
}
311
312
ide <- initialise argsDefaultHlsConfig rules Nothing logger debouncer options vfs hiedb hieChan
313
+ shakeSessionInit ide
312
314
registerIdeConfiguration (shakeExtras ide) $ IdeConfiguration mempty (hashed Nothing )
313
315
c ide
314
316
0 commit comments