Skip to content

Commit

Permalink
[Tree-view] Hide tree-view on reload
Browse files Browse the repository at this point in the history
Fixes: eclipse-theia#7037

Respects hide and collapse for tree-views such as `NPM Scripts` on
reload.

Signed-off-by: Anas Shahid <muhammad.shahid@ericsson.com>
  • Loading branch information
Anas Shahid committed Jul 21, 2020
1 parent ac06ac9 commit f36af2d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ export class PluginViewRegistry implements FrontendApplicationContribution {
if (!part) {
return;
}
widget.updateViewVisibility(() =>
part.setHidden(!this.isViewVisible(viewId))
widget.updateViewVisibility(() => {
if (!this.isViewVisible(viewId) && part.canHide) {
part.setHidden(true);
}
}
);
}

Expand Down

0 comments on commit f36af2d

Please sign in to comment.