-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[REVIEW ONLY] Split View Refactoring #8045
Conversation
src/document/DocumentManager.js
Outdated
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Done with initial review pass. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.