File tree 1 file changed +4
-4
lines changed
ghcide/session-loader/Development/IDE 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,8 @@ loadSessionWithOptions SessionLoadingOptions{..} dir = do
395
395
lfp <- flip makeRelative cfp <$> getCurrentDirectory
396
396
logInfo logger $ T. pack (" Consulting the cradle for " <> show lfp)
397
397
398
- when (isNothing hieYaml) $ mRunLspT lspEnv $
399
- sendNotification SWindowShowMessage $ notifyUserImplicitCradle lfp
398
+ when (isNothing hieYaml) $
399
+ logWarning logger $ implicitCradleWarning lfp
400
400
401
401
cradle <- maybe (loadImplicitHieCradle $ addTrailingPathSeparator dir) loadCradle hieYaml
402
402
@@ -820,8 +820,8 @@ getCacheDirsDefault prefix opts = do
820
820
cacheDir :: String
821
821
cacheDir = " ghcide"
822
822
823
- notifyUserImplicitCradle :: FilePath -> ShowMessageParams
824
- notifyUserImplicitCradle fp = ShowMessageParams MtWarning $
823
+ implicitCradleWarning :: FilePath -> T. Text
824
+ implicitCradleWarning fp =
825
825
" No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for "
826
826
<> T. pack fp <>
827
827
" .\n Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).\n " <>
You can’t perform that action at this time.
0 commit comments