File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ import HIE.Bios.Environment (addCmdOpts, makeDynFlagsAbsolut
6262import HIE.Bios.Types
6363import HscTypes (HscEnv (.. ), ic_dflags )
6464import qualified Language.Haskell.LSP.Core as LSP
65+ import Ide.Cradle
6566import Ide.Logger
6667import Ide.Plugin
6768import Ide.Plugin.Config
@@ -98,6 +99,7 @@ import Ide.Plugin.Ormolu as Ormolu
9899import Ide.Plugin.Brittany as Brittany
99100#endif
100101import Ide.Plugin.Pragmas as Pragmas
102+ import Data.Void (vacuous )
101103
102104
103105-- ---------------------------------------------------------------------
@@ -443,7 +445,7 @@ loadSession dir = do
443445 -- throwing an async exception
444446 void $ forkIO $ do
445447 putStrLn $ " Consulting the cradle for " <> show file
446- cradle <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
448+ cradle <- maybe (cabalHelperCradle cfp) ( fmap vacuous . loadCradle) hieYaml
447449 eopts <- cradleToSessionOpts cradle cfp
448450 print eopts
449451 case eopts of
You can’t perform that action at this time.
0 commit comments