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

Send clientInfo during the initialize request #818

Closed
wants to merge 1 commit into from

Conversation

nemethf
Copy link
Collaborator

@nemethf nemethf commented Jan 20, 2022

I haven't tried out native compilation, but my guess is this PR will work there as well.


clientInfo arrived in LSP 3.15.0. It is generally useful for various
debugging tasks.

  • eglot.el (eglot--version): New defconst.
    (eglot--connect): Send clientInfo using eglot--version.

@skangas
Copy link
Collaborator

skangas commented Jan 20, 2022

Thanks. Should this have a unit test?

clientInfo arrived in LSP 3.15.0.  It is generally useful for various
debugging tasks.

* eglot.el (eglot--version): New defconst.
(eglot--connect): Send clientInfo using eglot--version.
* eglot-tests.el (client-info): New test.
@nemethf nemethf force-pushed the scratch/clientInfo branch from abf1268 to f547d08 Compare January 20, 2022 11:09
@nemethf
Copy link
Collaborator Author

nemethf commented Jan 20, 2022

Thanks. Should this have a unit test?

I force pushed a new version with a test. I wrote the test in a cargo cult style, but it seems to work. By the way, am I reading it correctly that it's not possible to run just a single test with the current Makefile? That would be useful during development. Or is there another way to do it?

@skangas
Copy link
Collaborator

skangas commented Jan 20, 2022 via email

@nemethf
Copy link
Collaborator Author

nemethf commented Feb 16, 2023

@skangas, I addressed all the issues you raised in your review. Do you see any remaining problem with this PR? People seem to miss this feature:
rust-lang/rust-analyzer#14141 (comment)

Thanks.

@joaotavora
Copy link
Owner

I think this is generally OK, although I'm not familiar with this auto-versioning technique in eglot--version. Please submit this as a patch to the bug tracker and put me in CC. Thanks.

@nemethf
Copy link
Collaborator Author

nemethf commented Mar 23, 2023

Discussion continued in Emacs bug#62198. I think commit emacs-mirror/emacs@c5f369b closes this issue (#818).

@nemethf nemethf closed this Mar 23, 2023
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.

3 participants