Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completions from non-imported modules #2040

Merged
merged 12 commits into from
Jul 28, 2021
Prev Previous commit
Next Next commit
hlint
pepeiborra committed Jul 27, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 01225200a37a7b2ca2b3cf1541291b8071e334b6
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Plugin/Completions.hs
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ getCompletionsLSP ide plId
exportsMap <- mapM liftIO exportsMapIO
let exportsCompItems = foldMap (map (fromIdentInfo uri) . Set.toList) . Map.elems . getExportsMap <$> exportsMap
exportsCompls = mempty{unqualCompls = fromMaybe [] exportsCompItems}
let compls = (fst <$> localCompls) <> (fst <$> nonLocalCompls) <> (Just exportsCompls)
let compls = (fst <$> localCompls) <> (fst <$> nonLocalCompls) <> Just exportsCompls
pure (opts, fmap (,pm,binds) compls)
case compls of
Just (cci', parsedMod, bindMap) -> do