Skip to content

textDocument/codeCompletions not called #95

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

Closed
gdevanla opened this issue Dec 9, 2020 · 3 comments · Fixed by #96
Closed

textDocument/codeCompletions not called #95

gdevanla opened this issue Dec 9, 2020 · 3 comments · Fixed by #96

Comments

@gdevanla
Copy link
Contributor

gdevanla commented Dec 9, 2020

I see this unexpected behavior while trying to complete {-# LANGUAGE <my_cursor_here #-}.

I noticed, that when inside {- -} , the textDocument/codeCompletions request is not being sent to the server. I tried this functionality with VS Code and latest version of hls/ghcide and everything works. This seems to only be a problem with Emacs lsp. I wonder if this ticket belongs here or should we post this to the core emacs-lsp issue list.

@michaelpj
Copy link
Collaborator

Hmmm, this tickled my memory, and I dug up emacs-lsp/lsp-mode#2215. It looks like there's a client setting completion-in-comments?, which we should probably set to t, if HLS actually supports completion in comments (which it sounds like it does).

@gdevanla
Copy link
Contributor Author

Awesome. I tried with the change and it works. Can I submit a PR for that?

@michaelpj
Copy link
Collaborator

Fantastic!

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 a pull request may close this issue.

2 participants