atom / github

:octocat: Git and GitHub integration for Atom
https://github.atom.io
MIT License
1.12k stars 394 forks source link

Discard changes should trigger save #2727

Open DanielS6 opened 2 years ago

DanielS6 commented 2 years ago

Summary

When "discard changes" is used, the local file is updated, but anything listening for a save event (like the remote sync pro package) needs to be manually triggered by saving again.

Motivation

If a discard changes to a repo, I need to manually save the file again to trigger remote sync pro to update the foreign copy. When discarding changes to a file or two, this is fine, but when using "Discard All Changes" I need to remember which files require updating.

Describe alternatives you've considered

Additional context

This is my first issue for atom, sorry if I didn't provide enough details or if this is caused by code in atom core or in the remote sync pro package instead, I'm not sure how events work in atom.