@@ -20,14 +20,14 @@ import { toErrorMessage } from 'vs/base/common/errorMessage';
2020import { Scope as MementoScope } from 'vs/workbench/common/memento' ;
2121import { Part } from 'vs/workbench/browser/part' ;
2222import { BaseEditor } from 'vs/workbench/browser/parts/editor/baseEditor' ;
23- import { EditorInput , EditorOptions , ConfirmResult , IWorkbenchEditorConfiguration , TextEditorOptions , SideBySideEditorInput , TextCompareEditorVisibleContext , TEXT_DIFF_EDITOR_ID , EditorOpeningEvent , IEditorOpeningEvent , GroupIdentifier } from 'vs/workbench/common/editor' ;
23+ import { EditorInput , EditorOptions , ConfirmResult , IWorkbenchEditorConfiguration , TextEditorOptions , SideBySideEditorInput , TextCompareEditorVisibleContext , TEXT_DIFF_EDITOR_ID , IEditorOpeningEvent , GroupIdentifier , CloseDirection } from 'vs/workbench/common/editor' ;
2424import { EditorGroupsControl , Rochade , IEditorGroupsControl , ProgressState } from 'vs/workbench/browser/parts/editor/editorGroupsControl' ;
2525import { ScopedProgressService } from 'vs/workbench/services/progress/browser/progressService' ;
2626import { IEditorGroupService , GroupOrientation , GroupArrangement , IEditorTabOptions , IMoveOptions } from 'vs/workbench/services/group/common/groupService' ;
2727import { IConfigurationService , IConfigurationChangeEvent } from 'vs/platform/configuration/common/configuration' ;
2828import { IEditorPart } from 'vs/workbench/services/editor/common/editorService' ;
2929import { IPartService } from 'vs/workbench/services/part/common/partService' ;
30- import { Position , POSITIONS , Direction , IEditor } from 'vs/platform/editor/common/editor' ;
30+ import { Position , POSITIONS , IEditor } from 'vs/platform/editor/common/editor' ;
3131import { IStorageService } from 'vs/platform/storage/common/storage' ;
3232import { IInstantiationService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
3333import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection' ;
@@ -46,6 +46,7 @@ import { ThrottledEmitter } from 'vs/base/common/async';
4646import { isCodeEditor } from 'vs/editor/browser/editorBrowser' ;
4747import { INotificationService , Severity , INotificationActions } from 'vs/platform/notification/common/notification' ;
4848import { dispose } from 'vs/base/common/lifecycle' ;
49+ import { EditorOpeningEvent } from 'vs/workbench/browser/parts/editor2/nextEditorGroupView' ;
4950
5051/**
5152 * The editor part is the container for editors in the workbench. Based on the editor input being opened, it asks the registered
@@ -375,7 +376,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
375376
376377 // Filter: direction (left / right)
377378 else if ( hasDirection ) {
378- editorsToClose = ( filter . direction === Direction . LEFT ) ? editorsToClose . slice ( 0 , group . indexOf ( filter . except ) ) : editorsToClose . slice ( group . indexOf ( filter . except ) + 1 ) ;
379+ editorsToClose = ( filter . direction === CloseDirection . LEFT ) ? editorsToClose . slice ( 0 , group . indexOf ( filter . except ) ) : editorsToClose . slice ( group . indexOf ( filter . except ) + 1 ) ;
379380 }
380381
381382 // Filter: except
@@ -414,7 +415,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService
414415 }
415416 }
416417
417- private doCloseEditorsWithFilter ( group : EditorGroup , filter : { except ?: EditorInput , direction ?: Direction , savedOnly ?: boolean } ) : void {
418+ private doCloseEditorsWithFilter ( group : EditorGroup , filter : { except ?: EditorInput , direction ?: CloseDirection , savedOnly ?: boolean } ) : void {
418419
419420 // Close all editors if there is no editor to except and
420421 // we either are not only closing saved editors or
@@ -1748,7 +1749,7 @@ interface IEditorReplacement extends EditorIdentifier {
17481749 options ?: EditorOptions ;
17491750}
17501751
1751- export type ICloseEditorsFilter = { except ?: EditorInput , direction ?: Direction , savedOnly ?: boolean } ;
1752+ export type ICloseEditorsFilter = { except ?: EditorInput , direction ?: CloseDirection , savedOnly ?: boolean } ;
17521753export type ICloseEditorsByFilterArgs = { positionOne ?: ICloseEditorsFilter , positionTwo ?: ICloseEditorsFilter , positionThree ?: ICloseEditorsFilter } ;
17531754export type ICloseEditorsArgs = { positionOne ?: EditorInput [ ] , positionTwo ?: EditorInput [ ] , positionThree ?: EditorInput [ ] } ;
17541755
0 commit comments