Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Remove unnecessary project tree refresh after save as #6507

Merged
merged 2 commits into from
Jan 14, 2014

Conversation

jasonsanjose
Copy link
Member

Fixes #6499.

Also back out some code from #6382 where we incorrectly try to restore the tree selection using the working set selection (current document) instead of the file tree. This fix alone would also fix the bug, but now that we have file watchers, the call to ProjectManager.refreshFileTree becomes obsolete.

@ghost ghost assigned couzteau Jan 14, 2014
@@ -1210,8 +1210,6 @@ define(function (require, exports, module) {

if (_lastSelected) {
selectedEntry = _lastSelected.data("entry");
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is code that has erroneously ben added by #6382?

I have validated that the file selection in various configurations works as expected when refreshing the file tree, i.e. with or with out selection in Working set or project tree. No bugs found.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, exactly.

@couzteau
Copy link
Member

Since the code is just removing the call to refreshFileTree and placing the contents of the done handler of the removed call to be handled synchronously and immediately it all makes sense to me. No objections.

Unit + Integration tests are passing. merging.

couzteau added a commit that referenced this pull request Jan 14, 2014
Remove unnecessary project tree refresh after save as
@couzteau couzteau merged commit 39a381b into master Jan 14, 2014
@couzteau couzteau deleted the jasonsanjose/issue-6499 branch January 14, 2014 23:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core][Working Files][File Watchers]: Incorrect behavior when save as a file on the Working Files area.
2 participants