提交 f8a3d948 编写于 作者: S Sandeep Somavarapu

Should not have added the check

上级 6e8123a1
......@@ -349,18 +349,16 @@ export class ActivitybarPart extends Part {
const viewContainerRegistry = Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegistry);
const state: ISerializedPlaceholderComposite[] = [];
for (const { id, iconUrl } of this.viewletService.getAllViewlets()) {
if (iconUrl) {
const viewContainer = viewContainerRegistry.get(id);
const whens: string[] = [];
if (viewContainer) {
for (const { when } of this.viewsService.getViewDescriptors(viewContainer).allViewDescriptors) {
if (when) {
whens.push(when.serialize());
}
const viewContainer = viewContainerRegistry.get(id);
const whens: string[] = [];
if (viewContainer) {
for (const { when } of this.viewsService.getViewDescriptors(viewContainer).allViewDescriptors) {
if (when) {
whens.push(when.serialize());
}
}
state.push({ id, iconUrl, whens });
}
state.push({ id, iconUrl, whens });
}
this.storageService.store(ActivitybarPart.PLACEHOLDER_VIEWLETS, JSON.stringify(state), StorageScope.GLOBAL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册