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