File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ import Debug.Trace.Flags (userTracingEnabled)
163
163
import qualified Development.IDE.Types.Exports as ExportsMap
164
164
import HieDb.Types
165
165
import Ide.Plugin.Config
166
+ import Ide.Plugin.Properties (useProperty )
166
167
import qualified Ide.PluginUtils as HLS
167
168
import Ide.Types (PluginId )
168
169
@@ -308,7 +309,14 @@ instance IsIdeGlobal GlobalIdeOptions
308
309
getIdeOptions :: Action IdeOptions
309
310
getIdeOptions = do
310
311
GlobalIdeOptions x <- getIdeGlobalAction
311
- return x
312
+ env <- lspEnv <$> getShakeExtras
313
+ case env of
314
+ Nothing -> return x
315
+ Just env -> do
316
+ config <- liftIO $ LSP. runLspT env HLS. getClientConfig
317
+ return x{optCheckProject = pure $ checkProject config,
318
+ optCheckParents = pure $ checkParents config
319
+ }
312
320
313
321
getIdeOptionsIO :: ShakeExtras -> IO IdeOptions
314
322
getIdeOptionsIO ide = do
You can’t perform that action at this time.
0 commit comments