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

[REVIEW ONLY] Split View Refactoring #8045

Closed
wants to merge 78 commits into from
Closed

Conversation

JeffryBooher
Copy link
Contributor

This is the refactoring effort to move Working Set API's and start deprecating some of the DocumentManager APIs

This probably isn't ready for prime time consumption but want to get any feedback on the approach and if there is anything I forgot.

Also I encourage as much test exposure as possible to make sure nothing is broken.

* Removes a list of files from the working set
* @param {Array.<File>=} list Pass this arg to search a different array of files. Internal
* use only.
* @param {boolean=} true to close the current document too [deprecated]
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to mark @param deprecated if entire function is deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the param is not supported in the new function so it's worth mentioning IMO

@redmunds
Copy link
Contributor

redmunds commented Jun 9, 2014

Done with initial review pass.

@redmunds redmunds self-assigned this Jun 10, 2014
// Call clear current document here because we need the editor
// to close the current document and this is the only way to
// do that at the moment.
DocumentManager.clearCurrentDocument();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to call DocumentManager.clearCurrentDocument() here? Is this because of a change with this PR, or does it fix a bug that existed before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because DocumentManger.removeLIstFromWorkingSet() is deprecated and the replacement does not support the clearCurrentDocument discreet -- it was already an exported API but private so I just removed the private part and call it from here to close the document. This will get refactored again.

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.

5 participants