Skip to content

Commit 7cc5df7

Browse files
authored
Merge branch 'master' into dependabot/github_actions/fkirc/skip-duplicate-actions-5.3.1
2 parents ec489af + 5bf1b75 commit 7cc5df7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ghcide/session-loader/Development/IDE/Session.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ loadWithImplicitCradle mHieYaml rootDir = do
268268

269269
getInitialGhcLibDirDefault :: Recorder (WithPriority Log) -> FilePath -> IO (Maybe LibDir)
270270
getInitialGhcLibDirDefault recorder rootDir = do
271-
hieYaml <- findCradle def rootDir
271+
hieYaml <- findCradle def (rootDir </> "a")
272272
cradle <- loadCradle def hieYaml rootDir
273273
libDirRes <- getRuntimeGhcLibDir (toCologActionWithPrio (cmapWithPrio LogHieBios recorder)) cradle
274274
case libDirRes of

hls-test-utils/src/Test/Hls.hs

+1
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ runSessionWithServer' plugins conf sconf caps root s = withLock lock $ keepCurr
618618
, argsDefaultHlsConfig = conf
619619
, argsLogger = argsLogger
620620
, argsIdeOptions = ideOptions
621+
, argsProjectRoot = Just root
621622
}
622623

623624
x <- runSessionWithHandles inW outR sconf' caps root s

src/Ide/Main.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ defaultMain recorder args idePlugins = do
9090

9191
BiosMode PrintCradleType -> do
9292
dir <- IO.getCurrentDirectory
93-
hieYaml <- Session.findCradle def dir
93+
hieYaml <- Session.findCradle def (dir </> "a")
9494
cradle <- Session.loadCradle def hieYaml dir
9595
print cradle
9696

0 commit comments

Comments
 (0)