File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 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)
8686import HIE.Bios.Cradle (findCradle )
8787import qualified HieDb.Run as HieDb
8888import Ide.Plugin.Config (CheckParents (NeverCheck ),
89- Config ,
89+ Config , checkParents ,
90+ checkProject ,
9091 getConfigFromNotification )
9192import Ide.Plugin.ConfigUtils (pluginsToDefaultConfig ,
9293 pluginsToVSCodeExtensionSchema )
@@ -193,7 +194,10 @@ defaultArguments priority = Arguments
193194 , argsGhcidePlugin = mempty
194195 , argsHlsPlugins = pluginDescToIdePlugins Ghcide. descriptors
195196 , argsSessionLoadingOptions = def
196- , argsIdeOptions = const defaultIdeOptions
197+ , argsIdeOptions = \ config ghcSession -> (defaultIdeOptions ghcSession)
198+ { optCheckProject = pure $ checkProject config
199+ , optCheckParents = pure $ checkParents config
200+ }
197201 , argsLspOptions = def {LSP. completionTriggerCharacters = Just " ." }
198202 , argsDefaultHlsConfig = def
199203 , argsGetHieDbLoc = getHieDbLoc
You can’t perform that action at this time.
0 commit comments