Skip to content

Commit

Permalink
Ensure DebugWidget properly reports change in trackable widgets (#12241)
Browse files Browse the repository at this point in the history
Necessary because the debug session widgets are created lazily after
the layout has been initialized.

Fixes #12240
  • Loading branch information
martin-fleck-at authored Apr 21, 2023
1 parent 2deedba commit 0e0e9ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/debug/src/browser/view/debug-session-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class DebugSessionWidget extends BaseWidget implements StatefulWidget, Ap
}

getTrackableWidgets(): Widget[] {
return this.viewContainer.getTrackableWidgets();
return [this.viewContainer];
}

storeState(): object {
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/src/browser/view/debug-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class DebugWidget extends BaseWidget implements StatefulWidget, Applicati
}

getTrackableWidgets(): Widget[] {
return this.sessionWidget.getTrackableWidgets();
return [this.sessionWidget];
}

storeState(): object {
Expand Down

0 comments on commit 0e0e9ee

Please sign in to comment.