mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-29 19:59:19 +01:00
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user