Skip to content

[#87] Fix completion via ghcide's getCompletionsLSP#107

Merged
alanz merged 1 commit into
haskell:masterfrom
korayal:87-fix-completion
May 13, 2020
Merged

[#87] Fix completion via ghcide's getCompletionsLSP#107
alanz merged 1 commit into
haskell:masterfrom
korayal:87-fix-completion

Conversation

@korayal

@korayal korayal commented May 11, 2020

Copy link
Copy Markdown
Contributor

fixes #71 and #87

This fix requires the ghcide's Development.IDE.Plugin.Completions module to expose getCompletionsLSP

This fix requires the ghcide's `Development.IDE.Plugin.Completions` module to
expose `getCompletionsLSP`
@Avi-D-coder

Avi-D-coder commented May 11, 2020

Copy link
Copy Markdown
Collaborator

@korayal It looks like the build is failing

@korayal

korayal commented May 11, 2020 via email

Copy link
Copy Markdown
Contributor Author

@ndmitchell

Copy link
Copy Markdown
Collaborator

@korayal - is there a corresponding upstream commit to expose it from ghcide?

@korayal

korayal commented May 12, 2020

Copy link
Copy Markdown
Contributor Author

@ndmitchell I haven't pushed that change to anywhere because hls is using @alanz 's fork. So I thought it would be easier to make the change there directly. But here you go:

korayal/ghcide@f594fd1

@Avi-D-coder

Copy link
Copy Markdown
Collaborator

I can confirm this fixed my issue, @korayal can you send a PR to @alanz's ghcide fork exposing getCompletionsLSP.

@korayal

korayal commented May 13, 2020

Copy link
Copy Markdown
Contributor Author

@Avi-D-coder done:
alanz/ghcide#3

@fendor

fendor commented May 13, 2020

Copy link
Copy Markdown
Collaborator

@korayal could you rather open it against https://github.com/mpickering/ghcide ?
That is the main-line fork that @alanz's pr is based on, we do not want to diverge from it.

@korayal

korayal commented May 13, 2020

Copy link
Copy Markdown
Contributor Author

@fendor sure, initially I was a bit confused where to make this PR, so I thought allowing the project maintainers to make the change wherever it's easiest. But, anyways, here you go: mpickering/ghcide#36

@fendor

fendor commented May 13, 2020

Copy link
Copy Markdown
Collaborator

sure, initially I was a bit confused where to make this PR

I feel you, it is not as transparent/hard to find in github.
Thank you for your PR!

@korayal

korayal commented May 13, 2020

Copy link
Copy Markdown
Contributor Author

@fendor @alanz since the necessary changes are merged, I think the next step to wrap this PR up is to merge the latest ghcide into the fork.

@alanz
alanz merged commit 7edbf67 into haskell:master May 13, 2020
@fendor fendor mentioned this pull request May 14, 2020
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.

Language server returns empty array when invoking textDocument/completion

5 participants