дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 21:42:27 +02:00
Autosave (tab switch, window blur) refused to overwrite an external change only once the file watcher's debounced event had set disk_conflict, so an external write followed by a blur inside that window was overwritten with the older buffer. autosave() now compares the file's (mtime, length) with the stamp of the disk state the buffer last loaded or wrote, right before writing; on a mismatch it marks the conflict like the watcher path (including dropping the clean text), emits DocDiskConflict and returns false. Explicit Save still overwrites. Co-authored-by: audichuang <[email protected]>