Replies: 5 comments 4 replies
-
Eglot doesn't support this, which is in version 3.16 of the LSP protocol. I'm not sure the Clojure LSP server is correctly checking for this capability, which is absent from Eglot at the moment. If you or someone would like to implement this, that is a welcome change request. It seems the function to touch is I do NOT have a server to test this, so someone with a ClojureLSP or similar server will have to do this implementation. |
Beta Was this translation helpful? Give feedback.
-
This feature also does not currently work for jedi-language-server which I've tested. See the following for some more context: pappasam/jedi-language-server#209 |
Beta Was this translation helpful? Give feedback.
-
Overlapping concern but unlikely the same. It seems here a refactor request performs renames client side? I wanted |
Beta Was this translation helpful? Give feedback.
-
I had a similar ask in eglot-java, as renaming a top-level Java class name should also result into renaming the associated file.
@lina-bh , did you make progress with eglot core integration thus far or would it be better for someone else to help move it forward? |
Beta Was this translation helpful? Give feedback.
-
The essential design of the extension package I am writing is:
(:workspace
(:workspaceEdit
(:documentChanges
t
:resourceOperations
["create" "delete" "rename"])))
Like I said in the other comment, my university basically threw up their hands and said "We don't know what to do with this" when I chased them up for a copyright waiver, so I don't think I'd be able to get this into Emacs git for a while, but I can throw it up on a gist if anyone wants me to. |
Beta Was this translation helpful? Give feedback.
-
When performing
eglot-rename
the rename can require renaming files.Example: Renaming a Clojure namespace (which would be a "module name", a "package name" or a "class name" in other languages) means that the file in which the namespace is delcared has to be renamed or even moved to another directory. Here is the log of renaming the namespace
foo
which is in filefoo.clj
toa.bar
which should be moved toa/bar.clj
:It seams, the LSP server sends the required
"rename"
but Eglot is not executing it.Beta Was this translation helpful? Give feedback.
All reactions