@@ -16,7 +16,7 @@ import { joinPath } from '../../../../base/common/resources.js';
1616import { DiffEditorInput } from '../../../common/editor/diffEditorInput.js' ;
1717import { SideBySideEditor as SideBySideEditorPane } from '../../../browser/parts/editor/sideBySideEditor.js' ;
1818import { IEditorGroupsService , IEditorGroup , GroupsOrder , IEditorReplacement , isEditorReplacement , ICloseEditorOptions , IEditorGroupsContainer } from '../common/editorGroupsService.js' ;
19- import { IUntypedEditorReplacement , IEditorService , ISaveEditorsOptions , ISaveAllEditorsOptions , IRevertAllEditorsOptions , IBaseSaveRevertAllEditorOptions , IOpenEditorsOptions , PreferredGroup , isPreferredGroup , IEditorsChangeEvent , ISaveEditorsResult } from '../common/editorService.js' ;
19+ import { IUntypedEditorReplacement , IEditorService , ISaveEditorsOptions , ISaveAllEditorsOptions , IRevertAllEditorsOptions , IBaseSaveRevertAllEditorOptions , IOpenEditorsOptions , PreferredGroup , isPreferredGroup , IEditorsChangeEvent , ISaveEditorsResult , IVisibleEditorsChangeEvent } from '../common/editorService.js' ;
2020import { IConfigurationChangeEvent , IConfigurationService } from '../../../../platform/configuration/common/configuration.js' ;
2121import { Disposable , IDisposable , dispose , DisposableStore } from '../../../../base/common/lifecycle.js' ;
2222import { coalesce , distinct } from '../../../../base/common/arrays.js' ;
@@ -45,7 +45,7 @@ export class EditorService extends Disposable implements EditorServiceImpl {
4545 private readonly _onDidActiveEditorChange = this . _register ( new Emitter < void > ( ) ) ;
4646 readonly onDidActiveEditorChange = this . _onDidActiveEditorChange . event ;
4747
48- private readonly _onDidVisibleEditorsChange = this . _register ( new Emitter < void > ( ) ) ;
48+ private readonly _onDidVisibleEditorsChange = this . _register ( new Emitter < IVisibleEditorsChangeEvent > ( ) ) ;
4949 readonly onDidVisibleEditorsChange = this . _onDidVisibleEditorsChange . event ;
5050
5151 private readonly _onDidEditorsChange = this . _register ( new Emitter < IEditorsChangeEvent > ( ) ) ;
@@ -135,7 +135,7 @@ export class EditorService extends Disposable implements EditorServiceImpl {
135135 // Fire initial set of editor events if there is an active editor
136136 if ( this . activeEditor ) {
137137 this . doHandleActiveEditorChangeEvent ( ) ;
138- this . _onDidVisibleEditorsChange . fire ( ) ;
138+ this . _onDidVisibleEditorsChange . fire ( { isExplicit : false } ) ;
139139 }
140140 }
141141
@@ -168,9 +168,9 @@ export class EditorService extends Disposable implements EditorServiceImpl {
168168 this . _onDidEditorsChange . fire ( { groupId : group . id , event : e } ) ;
169169 } ) ) ;
170170
171- groupDisposables . add ( group . onDidActiveEditorChange ( ( ) => {
171+ groupDisposables . add ( group . onDidActiveEditorChange ( e => {
172172 this . handleActiveEditorChange ( group ) ;
173- this . _onDidVisibleEditorsChange . fire ( ) ;
173+ this . _onDidVisibleEditorsChange . fire ( { isExplicit : e . isExplicit !== false /* treat undefined as explicit */ } ) ;
174174 } ) ) ;
175175
176176 groupDisposables . add ( group . onWillOpenEditor ( e => {
0 commit comments