@@ -226,6 +226,7 @@ export interface IDockviewComponent extends IBaseGrid<DockviewGroupPanel> {
226
226
readonly onDidMaximizedGroupChange : Event < DockviewMaximizedGroupChanged > ;
227
227
readonly onDidPopoutGroupSizeChange : Event < PopoutGroupChangeSizeEvent > ;
228
228
readonly onDidPopoutGroupPositionChange : Event < PopoutGroupChangePositionEvent > ;
229
+ readonly onDidBlockPopout : Event < void > ;
229
230
readonly options : DockviewComponentOptions ;
230
231
updateOptions ( options : DockviewOptions ) : void ;
231
232
moveGroupOrPanel ( options : MoveGroupOrPanelOptions ) : void ;
@@ -319,6 +320,9 @@ export class DockviewComponent
319
320
readonly onDidPopoutGroupPositionChange : Event < PopoutGroupChangePositionEvent > =
320
321
this . _onDidPopoutGroupPositionChange . event ;
321
322
323
+ private readonly _onDidBlockPopout = new Emitter < void > ( ) ;
324
+ readonly onDidBlockPopout : Event < void > = this . _onDidBlockPopout . event ;
325
+
322
326
private readonly _onDidLayoutFromJSON = new Emitter < void > ( ) ;
323
327
readonly onDidLayoutFromJSON : Event < void > = this . _onDidLayoutFromJSON . event ;
324
328
@@ -505,6 +509,7 @@ export class DockviewComponent
505
509
this . _onDidOptionsChange ,
506
510
this . _onDidPopoutGroupSizeChange ,
507
511
this . _onDidPopoutGroupPositionChange ,
512
+ this . _onDidBlockPopout ,
508
513
this . onDidViewVisibilityChangeMicroTaskQueue ( ( ) => {
509
514
this . updateWatermark ( ) ;
510
515
} ) ,
@@ -715,6 +720,7 @@ export class DockviewComponent
715
720
716
721
if ( popoutContainer === null ) {
717
722
popoutWindowDisposable . dispose ( ) ;
723
+ this . _onDidBlockPopout . fire ( ) ;
718
724
return false ;
719
725
}
720
726
@@ -734,7 +740,7 @@ export class DockviewComponent
734
740
const referenceLocation = itemToPopout . api . location . type ;
735
741
736
742
/**
737
- * The group that is being added doesn't already exist within the DOM, the most likely occurance
743
+ * The group that is being added doesn't already exist within the DOM, the most likely occurrence
738
744
* of this case is when being called from the `fromJSON(...)` method
739
745
*/
740
746
const isGroupAddedToDom =
0 commit comments