File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import HIE.Bios.Environment (addCmdOpts, makeDynFlagsAbsolut
6161import HIE.Bios.Types
6262import HscTypes (HscEnv (.. ), ic_dflags )
6363import qualified Language.Haskell.LSP.Core as LSP
64+ import Ide.Cradle
6465import Ide.Logger
6566import Ide.Plugin
6667import Ide.Plugin.Config
@@ -97,6 +98,7 @@ import Ide.Plugin.Ormolu as Ormolu
9798import Ide.Plugin.Brittany as Brittany
9899#endif
99100import Ide.Plugin.Pragmas as Pragmas
101+ import Data.Void (vacuous )
100102
101103
102104-- ---------------------------------------------------------------------
@@ -437,7 +439,7 @@ loadSession dir = liftIO $ do
437439 -- throwing an async exception
438440 void $ forkIO $ do
439441 putStrLn $ " Consulting the cradle for " <> show file
440- cradle <- maybe (loadImplicitCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
442+ cradle <- maybe (cabalHelperCradle cfp) ( fmap vacuous . loadCradle) hieYaml
441443 opts <- cradleToSessionOpts cradle cfp
442444 print opts
443445 (cs, res)<- session (hieYaml, toNormalizedFilePath' cfp, opts)
You can’t perform that action at this time.
0 commit comments