sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.14k stars 207 forks source link

tweak the file deletion detection parameters #7580

Open williamstein opened 1 month ago

williamstein commented 1 month ago

I just did this:

  1. Switched from one branch of cocalc to another and edited the file packages/next/pages/index.tsx
  2. Saved everything, then switched to another branch that has index.tsx in it.
  3. CoCalc popped up a message closing index.tsx and saying it was "deleted".
  4. Indeed, when switching branches, the file maybe was deleted by git for a fraction of a second. But then a new version was created (before I edited it).

The code that listens for file deletions I thought had some sort of tolerance for the file being deleted and recreated in a millisecond, but evidently it doesn't. I should fix that.