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

Commit ece9bbf

Browse files
committed
Merge pull request #8990 from adobe/jeff/splitview-fixes
Fix 2 issues in DocumentManager Deprecated APIs
2 parents 7d9356e + c774ca9 commit ece9bbf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/document/DocumentManager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ define(function (require, exports, module) {
8787
DocumentModule = require("document/Document"),
8888
DeprecationWarning = require("utils/DeprecationWarning"),
8989
MainViewManager = require("view/MainViewManager"),
90+
MainViewFactory = require("view/MainViewFactory"),
9091
ProjectManager = require("project/ProjectManager"),
9192
EditorManager = require("editor/EditorManager"),
9293
FileSyncManager = require("project/FileSyncManager"),
@@ -162,10 +163,8 @@ define(function (require, exports, module) {
162163
DeprecationWarning.deprecationWarning("Use MainViewManager.getViews() instead of DocumentManager.getWorkingSet()", true);
163164
return MainViewManager.getWorkingSet(MainViewManager.ALL_PANES)
164165
.filter(function (file) {
165-
// Document.file objects were added to Working Sets
166-
// so filter the result set from the new API
167-
// for those files who have document objects
168-
return getOpenDocumentForPath(file.fullPath);
166+
// Legacy didn't allow for files with custom viewers
167+
return !MainViewFactory.findSuitableFactoryForPath(file.fullPath);
169168
});
170169
}
171170

@@ -687,6 +686,7 @@ define(function (require, exports, module) {
687686
exports.getCurrentDocument = getCurrentDocument;
688687
exports.beginDocumentNavigation = beginDocumentNavigation;
689688
exports.finalizeDocumentNavigation = finalizeDocumentNavigation;
689+
exports.getNextPrevFile = getNextPrevFile;
690690
exports.setCurrentDocument = setCurrentDocument;
691691
exports.closeFullEditor = closeFullEditor;
692692
exports.closeAll = closeAll;

0 commit comments

Comments
 (0)