File tree 1 file changed +6
-2
lines changed
ghcide/src/Development/IDE 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ import GHC.IO.Handle (hDuplicate)
86
86
import HIE.Bios.Cradle (findCradle )
87
87
import qualified HieDb.Run as HieDb
88
88
import Ide.Plugin.Config (CheckParents (NeverCheck ),
89
- Config ,
89
+ Config , checkParents ,
90
+ checkProject ,
90
91
getConfigFromNotification )
91
92
import Ide.Plugin.ConfigUtils (pluginsToDefaultConfig ,
92
93
pluginsToVSCodeExtensionSchema )
@@ -193,7 +194,10 @@ defaultArguments priority = Arguments
193
194
, argsGhcidePlugin = mempty
194
195
, argsHlsPlugins = pluginDescToIdePlugins Ghcide. descriptors
195
196
, argsSessionLoadingOptions = def
196
- , argsIdeOptions = const defaultIdeOptions
197
+ , argsIdeOptions = \ config ghcSession -> (defaultIdeOptions ghcSession)
198
+ { optCheckProject = pure $ checkProject config
199
+ , optCheckParents = pure $ checkParents config
200
+ }
197
201
, argsLspOptions = def {LSP. completionTriggerCharacters = Just " ." }
198
202
, argsDefaultHlsConfig = def
199
203
, argsGetHieDbLoc = getHieDbLoc
You can’t perform that action at this time.
0 commit comments