-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Make completions a HLS plugin #1147
Conversation
There should be no need to move the Local Completions code around anymore. I would prefer to have a diff as small as possible |
I see. So, do we still want to break up Completion.hs into multiple HLS plugins' are should we not be doing that as well? In other words, do we want to have Logic.hs intact and see if can extract away Completion.hs into multiple HLS plugins? |
, pluginSymbolsProvider = Nothing | ||
, pluginCompletionProvider = Just getCompletionsLSP | ||
, pluginRules = Ghcide.pluginRules Completions.plugin | ||
} |
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.
Alternatively, we can move code in Plugins/Completions.hs into this module and get rid of that module. That will reduce this redirection which seems redudant.
Any thoughts?
Either solution that allows to extract HLS providers to minimise the diff and preserve the git history. Probably keep things where they are and just break them down in smaller functions which can be assembled into an HLS provider in Plugin.HLS.Completions |
I think I will abandon this effort for now. The recent move seems to achieve what we want. A moving around code may not bring much material benefits. |
This replaces PR #670 and partially addresses #724
The end goal of this PR would be to abstract away the completions code (both Local and NonLocal) into one HLS plugin or separate HLS plugins one for each.