Skip to content

Support atomic update#5

Closed
mauricioszabo wants to merge 3 commits into
masterfrom
support-atomic-rewrite
Closed

Support atomic update#5
mauricioszabo wants to merge 3 commits into
masterfrom
support-atomic-rewrite

Conversation

@mauricioszabo
Copy link
Copy Markdown

For automated updates of files, most tools support atomic updates - it essentially creates a new file, fills it with the contents, and rename this new file to the one being "changed".

Pathwatcher emits a did-rename on this case, but if we're watching a file with a name foo.txt, we don't want to know that it was "renamed" to foo.txt - we want a did-change. This PR implements this.

I tested on my local copy of Pulsar, and the errors I was experiencing (tools that provoke an atomic update not changing the editor) are now fixed.

@savetheclocktower
Copy link
Copy Markdown

Fixed in #6!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants