Skip to content

Commit

Permalink
Fix #37693
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Nov 7, 2017
1 parent 835dde0 commit af39ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/views/viewsViewlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export class ViewsViewlet extends PanelViewlet {

private canBeVisible(viewDescriptor: IViewDescriptor): boolean {
const viewstate = this.viewsStates.get(viewDescriptor.id);
if (viewstate && viewstate.isHidden) {
if (viewDescriptor.canToggleVisibility && viewstate && viewstate.isHidden) {
return false;
}
return this.contextKeyService.contextMatchesRules(viewDescriptor.when);
Expand Down

0 comments on commit af39ef5

Please sign in to comment.