Implement proper LSP file rename/delete (moves/deletes .uid/.import files)#105536
Implement proper LSP file rename/delete (moves/deletes .uid/.import files)#105536Cretezy wants to merge 1 commit intogodotengine:masterfrom
Conversation
HolonProduction
left a comment
There was a problem hiding this comment.
At the moment everything we add to godot_lsp.h is additional maintenance burden, so if something isn't used by the LSP we really should not add it in there.
In addition I have no clue how you tested this and it worked, since the new endpoints are not bound to JSON rpc. Please make sure to rebase your changes on top of the most recent Godot master and test again.
|
@HolonProduction Thank you a ton for the review, I'm still learning the inner workings of LSP (and I'm not too familiar with C++). I've updated the PR based on the changes you suggested. I previously was basing my branch off the 4.4 branch, hence why the What do you suggest about the changes in Here's it working on latest: |
1dea80c to
639a4c7
Compare
34b90b7 to
cbf46db
Compare
|
Updated to reply instead: |
cbf46db to
ff31e9b
Compare
2047fa4 to
72c9990
Compare
72c9990 to
89777f7
Compare
|
Doesn't work with VSCode. Reason seems to be the glob, maybe neovim is more permissive than the spec. But to match all files correctly you need to use Also please remove the fixes reference from the commit message, it's enough to have it in the PR description. It creates a lot of noise on Github when in the commit. |
|
So this has been sitting for a while now, @Cretezy are you still interested in working on it? Or should someone else pick up the work? |
|
Marking as salvageable for now. |
|
Hey, haven't been working on Godot recently. I'll try to push this over the line this weekend. |
Fixes #105515
Implement
willRenameFiles, which provides to the LSP client a command to rename the matching.uid(for.gdfiles) or.import(for other files), if they exist.Implement
willDeleteFiles, which provides to the LSP client a command to delete the matching.uid(for.gdfiles) or.import(for other files), if they exist.Tested working within Neovim with LSP.