multihack / multihack-brackets

Realtime collaboration for programmers. (Brackets Extension)
MIT License
24 stars 9 forks source link

Deleted files reappear as empty files when re-entering a room #50

Open t-mullen opened 7 years ago

t-mullen commented 7 years ago
  1. Delete a file with one other person.
  2. Leave the room after some time.
  3. Rejoin and the file will be recreated as an empty file with the same path.
t-mullen commented 6 years ago

YJS dumps emits the history of create/deletes on sync, instead of giving the current state. Combined with the async nature of the filesystem, this allows files to be remade (multiple async create/deletes started at the same time will result in the file being created)