-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Get rid of deprecation warnings in LiveDevMultiBrowser #10500
Conversation
@JeffryBooher Can you review this small PR? It updates code deprecated by split view changes, and also updates a deprecation warning message. |
|
||
if (!otherDocumentsInWorkingFiles) { | ||
DocumentManager.setCurrentDocument(doc); | ||
MainViewManager._edit(MainViewManager.ACTIVE_PANE, doc); |
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.
Can We use DocumentCommand.CMD_ADD_TO_WORKINGSET_AND_OPEN
instead?
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.
Fixed, but I used CMD_OPEN
instead. The file is already added to the working set (right before if
).
@redmunds LGTM -- just the one comment. |
@JeffryBooher, done. |
@@ -157,7 +157,7 @@ define(function (require, exports, module) { | |||
* @return {Array.<File>} | |||
*/ | |||
function getWorkingSet() { | |||
DeprecationWarning.deprecationWarning("Use MainViewManager.getViews() instead of DocumentManager.getWorkingSet()", true); | |||
DeprecationWarning.deprecationWarning("Use MainViewManager.getWorkingSet() instead of DocumentManager.getWorkingSet()", true); |
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.
good catch, btw!
@busykai probably unrelated to this change but 3 Live Dev tests fail in the MultiBrowser (experimental) test suite:
I'm on Win 8.1 / Chrome Version 41.0.2272.35 beta-m (64-bit) |
Merging this since the test failures it doesn't appear to be related. Tested and works as expected. |
Get rid of deprecation warnings in LiveDevMultiBrowser
@JeffryBooher, thanks for this data! Will take a look at it. |
In case where the
LiveDocument
does not have a master editor,LiveDevMultiBrowser
implementation uses deprecated methods to add it to the working set and open if there's no other documents.CC @redmunds