@@ -41,9 +41,7 @@ import Development.IDE.Core.PositionMapping
4141import Development.IDE.Core.RuleTypes
4242import Development.IDE.GHC.Compat
4343import qualified Development.IDE.GHC.Compat.Util as Util
44- import Development.IDE.GHC.Util (getExtensions ,
45- getExtensionsSet ,
46- printOutputable ,
44+ import Development.IDE.GHC.Util (printOutputable ,
4745 printOutputableOneLine )
4846import Development.IDE.Spans.Common
4947import Development.IDE.Types.Options
@@ -71,12 +69,9 @@ import qualified Data.Set as S
7169import Data.Tree
7270import qualified Data.Tree as T
7371import Data.Version (showVersion )
74- import Debug.Trace (traceShow , traceShowId )
7572import Development.IDE.Core.LookupMod (LookupModule , lookupMod )
76- import Development.IDE.Core.PluginUtils (runActionE )
7773import Development.IDE.Core.Shake (ShakeExtras (.. ),
78- runIdeAction , use ,
79- useWithStaleFast )
74+ runIdeAction )
8075import Development.IDE.Types.Shake (WithHieDb )
8176import GHC.Iface.Ext.Types (EvVarSource (.. ),
8277 HieAST (.. ),
@@ -266,9 +261,9 @@ atPoint
266261 -> DocAndTyThingMap
267262 -> HscEnv
268263 -> Position
269- -> ParsedModule
264+ -> Util. EnumSet Extension
270265 -> IO (Maybe (Maybe Range , [T. Text ]))
271- atPoint opts@ IdeOptions {} shakeExtras@ ShakeExtras { withHieDb, hiedbWriter } har@ (HAR _ (hf :: HieASTs a ) rf _ (kind :: HieKind hietype )) (DKMap dm km _am) env pos parsedModule =
266+ atPoint opts@ IdeOptions {} shakeExtras@ ShakeExtras { withHieDb, hiedbWriter } har@ (HAR _ (hf :: HieASTs a ) rf _ (kind :: HieKind hietype )) (DKMap dm km _am) env pos enabledExtensions =
272267 listToMaybe <$> sequence (pointCommand hf pos hoverInfo)
273268 where
274269 -- Hover info for values/data
@@ -288,9 +283,6 @@ atPoint opts@IdeOptions{} shakeExtras@ShakeExtras{ withHieDb, hiedbWriter } har@
288283 prettyNames <- mapM (prettyName locationsMap) names
289284 pure (Just range, prettyNames ++ pTypes locationsMap)
290285 where
291- enabledExtensions :: Util. EnumSet Extension
292- enabledExtensions = getExtensionsSet $ parsedModule
293-
294286 pTypes :: M. Map Name Location -> [T. Text ]
295287 pTypes locationsMap =
296288 case names of
0 commit comments