You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended way on a file rename is to sent a close with the old file and a open with the new file.
Slightly related to #1263 - what about if the rename is only changing case?
Right now, VS code does not send a Close/Open in this case for macOS or Windows (regardless of whether the filesystem is actually case-sensitive or not). However it does send rename events (but continues to use the old casing for everything going forwards). This seems inconsistent and makes it difficult for servers to handle these types of renames.
I personally think that using whatever name the system started to use on case insensitive file systems is the right thing to do. There is actually no guarantee that the initial name had the casing as stored on disk.
I am in the process of implementing an LSP client, but reading the spec I cannot figure out how I should handle file renames.
The text was updated successfully, but these errors were encountered: