提交 c650757b 编写于 作者: I isidor

fixes #97431

上级 13df2757
......@@ -61,6 +61,7 @@ export class BreakpointsView extends ViewPane {
private list!: WorkbenchList<BreakpointItem>;
private needsRefresh = false;
private ignoreLayout = false;
constructor(
options: IViewletViewOptions,
......@@ -79,7 +80,6 @@ export class BreakpointsView extends ViewPane {
) {
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
this.updateSize();
this._register(this.debugService.getModel().onDidChangeBreakpoints(() => this.onBreakpointsChange()));
}
......@@ -164,10 +164,20 @@ export class BreakpointsView extends ViewPane {
}
protected layoutBody(height: number, width: number): void {
if (this.ignoreLayout) {
return;
}
super.layoutBody(height, width);
if (this.list) {
this.list.layout(height, width);
}
try {
this.ignoreLayout = true;
this.updateSize();
} finally {
this.ignoreLayout = false;
}
}
private onListContextMenu(e: IListContextMenuEvent<IEnablement>): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册