Problem with File Renaming #884
Unanswered
ballcoach12
asked this question in
Q&A
Replies: 1 comment
-
How are you renaming the file on the client side? AFAIK, in the LSP, there is no such thing as renaming, it's just about closing the previous file and opening the new file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am interested to know the proper way to update a file name and get the editor to recognize the change. I assume that the language client should send a message to the language server. I have posted about our design before, and we are providing a file system that is satisfied by a REST API. We send a request to that API to do the rename, but it isn't clear how to handle this on the monaco/language server side of things.
What we see is that the editor loses syntax highlighting after the rename, but if we change the name of the file back to the original, syntax highlighting comes back and so does code assist. I can try to create a small reproducible example if that helps, but I was wondering if someone might have an idea what's going on based on the symptoms that I described. We have verified that the wrapper's model is being updated after the rename.
Beta Was this translation helpful? Give feedback.
All reactions