hatchmoment. scored by care · not by stars

stale-buffer-guard

VS Code extension warns when your unsaved buffer is older than the file on disk

notableJavaScript🛠 Developer Tools

Stale Buffer Guard tracks the last-modified time of a file when you open or save it, then watches for external changes. If the file on disk changes while you have unsaved edits, it shows a status bar warning, diagnostic, and background highlight, letting you discard, keep, or hide the warning. It’s aimed at developers who work in VS Code and need to avoid overwriting their work when other tools modify the same files. Unlike generic file watchers, it integrates directly into the editor UI with explicit actions, reducing accidental data loss.

View on GitHub →

omry/stale-buffer-guard