Helpers for server-specific functionality #1476
ArsenArsen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Certain servers (most notably for me JDTLS) have server-specific commands that are very useful, for instance, JDTLS specifically has a
java/projectConfigurationUpdate
notification that should be sent to it after editing build system files.I am content with invoking this command manually, but currently, Eglot has no way of doing so out of the box.
I've added the following to my
init.el
:I'm not sure whether it is correct, and I copied the
:uri
logic fromeglot.el
.I see that other LSP implementations usually have a language-specific package which contains helpers like these as well as server configuration. While I don't think that
eglot
should necessarily take this specific approach, it seems to me that server-specific work is sometimes necessary. Namely, server-specific commands like the above seem relatively low-cost but helpful.Could
eglot
provide helpers akin to the above? As well as a method to distinguish whether they are applicable (say, a server field calledserverHelpers
or such that these helpers would check against).What I imagined for the above is something like an interactive command which either takes the current server or, if none is present or prefix is passed, asks for which JDTLS server to send the notification to. It'd also be good if the user could pass a server when calling the function noninteractively, so that a specific argument can be passed.
Beta Was this translation helpful? Give feedback.
All reactions