Skip to content

Commit 1b06109

Browse files
committed
fix Check and Custom commands
1 parent 7d14619 commit 1b06109

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ghcide/src/Development/IDE/Main.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ import Development.IDE.Core.Rules (GhcSessionIO (GhcSession
4242
import Development.IDE.Core.Service (initialise, runAction)
4343
import Development.IDE.Core.Shake (IdeState (shakeExtras),
4444
ShakeExtras (state),
45-
uses)
45+
shakeSessionInit, uses)
4646
import Development.IDE.Core.Tracing (measureMemory)
47+
import Development.IDE.Graph (action)
4748
import Development.IDE.LSP.LanguageServer (runLanguageServer)
4849
import Development.IDE.Plugin (Plugin (pluginHandlers, pluginRules))
4950
import Development.IDE.Plugin.HLS (asGhcIdePlugin)
@@ -61,7 +62,6 @@ import Development.IDE.Types.Options (IdeGhcSession,
6162
clientSupportsProgress,
6263
defaultIdeOptions)
6364
import Development.IDE.Types.Shake (Key (Key))
64-
import Development.IDE.Graph (action)
6565
import GHC.IO.Encoding (setLocaleEncoding)
6666
import GHC.IO.Handle (hDuplicate)
6767
import HIE.Bios.Cradle (findCradle)
@@ -261,6 +261,7 @@ defaultMain Arguments{..} = do
261261
, optCheckProject = pure False
262262
}
263263
ide <- initialise argsDefaultHlsConfig rules Nothing logger debouncer options vfs hiedb hieChan
264+
shakeSessionInit ide
264265
registerIdeConfiguration (shakeExtras ide) $ IdeConfiguration mempty (hashed Nothing)
265266

266267
putStrLn "\nStep 4/4: Type checking the files"
@@ -309,6 +310,7 @@ defaultMain Arguments{..} = do
309310
optCheckProject = pure False
310311
}
311312
ide <- initialise argsDefaultHlsConfig rules Nothing logger debouncer options vfs hiedb hieChan
313+
shakeSessionInit ide
312314
registerIdeConfiguration (shakeExtras ide) $ IdeConfiguration mempty (hashed Nothing)
313315
c ide
314316

0 commit comments

Comments
 (0)