Skip to content

Commit 2329109

Browse files
committed
Expand hover comment
1 parent b1f0af3 commit 2329109

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ghcide/src/Development/IDE/Core/Actions.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ getAtPoint file pos = runMaybeT $ do
146146
(hf, mapping) <- useWithStaleFastMT GetHieAst file
147147
-- The HscEnv and DKMap are not strictly necessary for hover
148148
-- to work, so we only calculate them for project files, not
149-
-- for dependency files.
149+
-- for dependency files. They provide information that will
150+
-- not be displayed in dependency files. See the atPoint
151+
-- function in ghcide/src/Development/IDE/Spans/AtPoint.hs
152+
-- for the specifics of how they are used.
150153
(mEnv, mDkMap) <- case getSourceFileOrigin file of
151154
FromDependency -> pure (Nothing, Nothing)
152155
FromProject -> do

0 commit comments

Comments
 (0)