@@ -35,7 +35,6 @@ define(function (require, exports, module) {
3535 // these are Tab bar specific commands for the context menu
3636 // not added in the Commands.js as Tab bar is not a core module but an extension
3737 // read init function
38- const TABBAR_CLOSE_SAVED_TABS = "tabbar.closeSavedTabs" ;
3938 const TABBAR_CLOSE_ALL = "tabbar.closeAllTabs" ;
4039
4140 // command IDs from working files - we reuse it here with different labels
@@ -102,17 +101,6 @@ define(function (require, exports, module) {
102101 }
103102 }
104103
105- // **Close Saved Tabs**
106- // closes all saved tabs (not dirty) in the pane
107- function handleCloseSavedTabs ( ) {
108- const workingSet = _getWorkingSet ( _currentTabContext . paneId ) ;
109- if ( workingSet && workingSet . length !== 0 ) {
110- // filter out dirty tabs, only close the saved ones
111- const savedTabs = workingSet . filter ( entry => ! entry . isDirty ) ;
112- _closeFiles ( savedTabs , _currentTabContext . paneId ) ;
113- }
114- }
115-
116104 /**
117105 * this function is called from Tabbar/main.js when a tab is right clicked
118106 * it is responsible to show the context menu and also set the currentTabContext
@@ -137,14 +125,12 @@ define(function (require, exports, module) {
137125 */
138126 function init ( ) {
139127 // these are the tab bar specific commands
140- CommandManager . register ( Strings . CLOSE_SAVED_TABS , TABBAR_CLOSE_SAVED_TABS , handleCloseSavedTabs ) ;
141128 CommandManager . register ( Strings . CLOSE_ALL_TABS , TABBAR_CLOSE_ALL , handleCloseAllTabs ) ;
142129
143130 const menu = Menus . registerContextMenu ( "tabbar-context-menu" ) ;
144131 menu . addMenuItem ( Commands . FILE_CLOSE ) ;
145132 menu . addMenuItem ( FILE_CLOSE_ABOVE ) ; // updated label will be : "Close Tabs to the Left"
146133 menu . addMenuItem ( FILE_CLOSE_BELOW ) ; // updated label will be : "Close Tabs to the Right"
147- menu . addMenuItem ( TABBAR_CLOSE_SAVED_TABS ) ;
148134 menu . addMenuItem ( TABBAR_CLOSE_ALL ) ;
149135 menu . addMenuDivider ( ) ;
150136 menu . addMenuItem ( Commands . FILE_PIN ) ;
0 commit comments