[Fylesystem] Renaming a file on windows generates the wrong event #6315
Labels
bug
bugs found in the application
filesystem
issues related to the filesystem
help wanted
issues meant to be picked up, require help
OS/Windows
issues related to the Windows OS
Description
When a file or a folder is renamed on Windows, I would expect Theia to generate 2 events, 1 for the file getting deleted and another one for the file getting created. This doesn't happen, due to an unexpected behaviour of
nsfw
.Reproduction Steps
On Windows, try to rename a file that is watched by
NsfwFileSystemWatcherServer
. When doing that 2 events are generated bynsfw
, one for the renamed file with type RENAMED'containing both the old path and the new path and another one with type CREATED for the deleted file. The second event is then merged with the events generated for the file renaming according to the rule DELETED + ADDED => UPDATED and the result is the old file being described as UPDATED instead of DELETED.I think this is a bug in
nsfw
, but it begs the question, do you fillit might be appropriate to address this in Theia?OS and Theia version:
Seen on Windows 10, with the latest Theia version (master).
Diagnostics:
The text was updated successfully, but these errors were encountered: