Skip to content

Commit

Permalink
debug: not all views have setVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Apr 5, 2016
1 parent afb5504 commit 117b3eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/parts/debug/browser/debugViewlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class DebugViewlet extends viewlet.Viewlet {

private $el: builder.Builder;
private splitView: splitview.SplitView;
// TODO@Isidor views need to be splitView.collapsibleView to make them more general
private views: (viewlet.CollapsibleViewletView | viewlet.AdaptiveCollapsibleViewletView)[];

private lastFocusedView: viewlet.CollapsibleViewletView | viewlet.AdaptiveCollapsibleViewletView;
Expand Down Expand Up @@ -89,7 +90,7 @@ export class DebugViewlet extends viewlet.Viewlet {

public setVisible(visible: boolean): TPromise<any> {
return super.setVisible(visible).then(() => {
return TPromise.join(this.views.map((view) => view.setVisible(visible)));
return TPromise.join(this.views.map((view) => view.setVisible && view.setVisible(visible)));
});
}

Expand Down

0 comments on commit 117b3eb

Please sign in to comment.