@@ -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