提交 89fe1c12 编写于 作者: S Sandeep Somavarapu

Fix #33345

上级 8b404334
......@@ -669,8 +669,11 @@ export class ViewsViewlet extends Viewlet {
if (ViewLocation.getContributedViewLocation(this.location.id) && !this.areExtensionsReady) {
// Checks in cache so that view do not jump. See #29609
let visibleViewsCount = 0;
this.viewsStates.forEach(viewState => {
if (!viewState.isHidden) {
const viewDecriptors = this.getViewDescriptorsFromRegistry();
this.viewsStates.forEach((viewState, id) => {
const viewDescriptor = viewDecriptors.filter(viewDescriptor => viewDescriptor.id === id)[0];
const isHidden = viewState.isHidden || (viewDescriptor && !this.contextKeyService.contextMatchesRules(viewDescriptor.when));
if (!isHidden) {
visibleViewsCount++;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册