File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 55{-# LANGUAGE DerivingStrategies #-}
66{-# LANGUAGE DuplicateRecordFields #-}
77{-# LANGUAGE ExistentialQuantification #-}
8+ {-# LANGUAGE OverloadedLabels #-}
89{-# LANGUAGE PolyKinds #-}
910{-# LANGUAGE RankNTypes #-}
1011{-# LANGUAGE RecursiveDo #-}
@@ -163,6 +164,7 @@ import Debug.Trace.Flags (userTracingEnabled)
163164import qualified Development.IDE.Types.Exports as ExportsMap
164165import HieDb.Types
165166import Ide.Plugin.Config
167+ import Ide.Plugin.Properties (useProperty )
166168import qualified Ide.PluginUtils as HLS
167169import Ide.Types (PluginId )
168170
@@ -308,7 +310,14 @@ instance IsIdeGlobal GlobalIdeOptions
308310getIdeOptions :: Action IdeOptions
309311getIdeOptions = do
310312 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+ }
312321
313322getIdeOptionsIO :: ShakeExtras -> IO IdeOptions
314323getIdeOptionsIO ide = do
You can’t perform that action at this time.
0 commit comments