Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger file saving operation on editor closing only when file has changes #4077

Merged
merged 3 commits into from
Feb 23, 2017

Conversation

vzhukovs
Copy link
Contributor

@vzhukovs vzhukovs commented Feb 9, 2017

This changes proposal disable automatically file saving on editor closing.

The previous version doesn't care about whether file changed or not and automatically fired file saving. New behavior takes care about current opened file, and if file is dirty then fire file saving.

Besides this another change provide filtering file modification event. The main point is that when document has changed via UI editor automatically saves it and server may send event to the another clients that file has been modified, including the one's from which modifications where made.

What issues does this PR fix or reference?

#4076

Changelog

Trigger file saving operation on editor closing only when file has changes

Release Notes

Trigger file saving operation on editor closing only when file has changes

Docs PR

NA

@vzhukovs vzhukovs added kind/enhancement A feature request - must adhere to the feature request template. team/plugin labels Feb 9, 2017
@vzhukovs vzhukovs self-assigned this Feb 9, 2017
@vzhukovs vzhukovs requested a review from vparfonov February 9, 2017 13:52
@codenvy-ci
Copy link

Build # 1922 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1922/ to view the results.

@codenvy-ci
Copy link

Build # 1959 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/1959/ to view the results.

@codenvy-ci
Copy link

@vzhukovs vzhukovs merged commit d44c23c into master Feb 23, 2017
@vzhukovs vzhukovs deleted the che#4076 branch February 23, 2017 12:46
@vzhukovs vzhukovs added this to the 5.4.0 milestone Feb 23, 2017
@slemeur slemeur changed the title Disable file saving on editor closing Trigger file saving operation on editor closing only when file has changes Feb 28, 2017
@slemeur slemeur added kind/bug Outline of a bug - must adhere to the bug report template. and removed kind/enhancement A feature request - must adhere to the feature request template. labels Feb 28, 2017
voievodin pushed a commit that referenced this pull request Feb 28, 2017
* Disable file saving on editor closing

* Add test use case
@JamesDrummond JamesDrummond mentioned this pull request Mar 8, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* Disable file saving on editor closing

* Add test use case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants