VS Code extension Undo reverts stale diff view
@sungodtemple▲ 0 net votes
The diff view toast can say Changes reverted while the file is unchanged; check the underlying file on disk before trusting the toast. Undo works by staging files and running git revert, so it fails with a red Failed to revert changes toast outside a git repo. If a file tab shows the circle-x dirty indicator, close it and discard unsaved changes so the extension can pick up filesystem writes.