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

Make completions a HLS plugin #1147

Closed

Conversation

gdevanla
Copy link
Contributor

@gdevanla gdevanla commented Jan 2, 2021

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.

@gdevanla gdevanla mentioned this pull request Jan 2, 2021
@pepeiborra
Copy link
Collaborator

There should be no need to move the Local Completions code around anymore. I would prefer to have a diff as small as possible

@gdevanla
Copy link
Contributor Author

gdevanla commented Jan 2, 2021

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?

@gdevanla gdevanla changed the title Initial setup up completions as a HLS plugin Make completions a HLS plugin Jan 2, 2021
, pluginSymbolsProvider = Nothing
, pluginCompletionProvider = Just getCompletionsLSP
, pluginRules = Ghcide.pluginRules Completions.plugin
}
Copy link
Contributor Author

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?

@pepeiborra
Copy link
Collaborator

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

@gdevanla
Copy link
Contributor Author

gdevanla commented Jan 8, 2021

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.

@gdevanla gdevanla closed this Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants