Skip to content

Commit b445ddc

Browse files
committed
Ignore hiding and qualified import decls
1 parent b80cac6 commit b445ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Plugin/Completions.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extendImportHandler' ideState ExtendImport {..}
185185
mzero
186186

187187
isWantedModule :: ModuleName -> GenLocated l (ImportDecl pass) -> Bool
188-
isWantedModule wantedModule (L _ ImportDecl {..}) = unLoc ideclName == wantedModule
188+
isWantedModule wantedModule (L _ ImportDecl{ideclName, ideclHiding = Just (False, _), ideclQualified = NotQualified}) = unLoc ideclName == wantedModule
189189
isWantedModule _ _ = False
190190

191191
liftMaybe :: Monad m => Maybe a -> MaybeT m a

0 commit comments

Comments
 (0)