Skip to content

Commit 999ab05

Browse files
committed
Refined the progress message to use T.intercalate for better readability and consistency. This change enhances the clarity of the setup messages by properly formatting the list of cradles and log file paths.
1 parent 91494a7 commit 999ab05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
661661
logWith recorder Info $ LogCradlePaths lfpLogs
662662
cradles <- mapM (\(hieYaml, _) -> loadCradle recorder hieYaml rootDir) hyCfpList
663663
when optTesting $ mRunLspT lspEnv $ mapM_ (\(_, cfp) -> sendNotification (SMethod_CustomMethod (Proxy @"ghcide/cradle/loaded")) (toJSON cfp)) hyCfpList
664-
let progMsg = "Setting up " <> T.pack (show (takeBaseName . cradleRootDir <$> cradles))
665-
<> " (for " <> T.pack (show lfpLogs) <> ")"
664+
let progMsg = "Setting up " <> T.intercalate "," (T.pack . takeBaseName . cradleRootDir <$> cradles)
665+
<> " (for " <> T.intercalate "," (T.pack <$> lfpLogs) <> ")"
666666
eoptsList <- mRunLspTCallback lspEnv (\act -> withIndefiniteProgress progMsg Nothing NotCancellable (const act)) $
667667
do old_files <- readIORef cradle_files
668668
res <- cradleToOptsAndLibDirs recorder (sessionLoading clientConfig) (zip cradles hyCfpList) old_files

0 commit comments

Comments
 (0)