Temporarily remove explorer expand all (#156162)

Remove expand all
This commit is contained in:
Logan Ramos
2022-07-25 10:24:26 -04:00
committed by GitHub
parent c47c24af30
commit 7d7df31b8e
@@ -989,7 +989,7 @@ registerAction2(class extends Action2 {
menu: {
id: MenuId.ViewTitle,
group: 'navigation',
when: ContextKeyExpr.and(ContextKeyExpr.equals('view', VIEW_ID), ViewHasSomeCollapsibleRootItemContext),
when: ContextKeyExpr.equals('view', VIEW_ID),
order: 40
}
});
@@ -1001,26 +1001,3 @@ registerAction2(class extends Action2 {
explorerView.collapseAll();
}
});
registerAction2(class extends Action2 {
constructor() {
super({
id: 'workbench.files.action.expandExplorerFolders',
title: { value: nls.localize('expandExplorerFolders', "Expand Folders in Explorer"), original: 'Expand Folders in Explorer' },
f1: true,
icon: Codicon.expandAll,
menu: {
id: MenuId.ViewTitle,
group: 'navigation',
when: ContextKeyExpr.and(ContextKeyExpr.equals('view', VIEW_ID), ViewHasSomeCollapsibleRootItemContext.toNegated()),
order: 40
}
});
}
run(accessor: ServicesAccessor) {
const viewsService = accessor.get(IViewsService);
const explorerView = viewsService.getViewWithId(VIEW_ID) as ExplorerView;
explorerView.expandAll();
}
});