-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this nice feature, tests looks great
I'll merge this after #1955 |
Is there any way I can turn this off? It keeps polluting my import list with things I didn't ask for, most of which are wrong. |
I don't think so. We ought to breakdown the completions plugin into multiple smaller plugins that can be turned on/off at will. PRs welcome! |
@AriFordsham Not sure if it would do what you want but there is a config option They are listed in the configuration section of the docs: https://haskell-language-server.readthedocs.io/en/latest/configuration.html#language-specific-server-options |
Provide completions for non-imported modules and automatically inserts new imports when necessary. The identifiers are extracted from the exports map, which no longer includes entries from
*.Internal
modules.Things left for future work:
This partially closes #1327
Screen.Recording.2021-07-27.at.10.03.30.mov