Skip to content

Commit

Permalink
register open explorer command with container
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Feb 5, 2021
1 parent 70d355c commit c11bf9d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/vs/workbench/contrib/files/browser/explorerViewlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,6 @@ export class ExplorerViewletViewsContribution extends Disposable implements IWor
ctorDescriptor: new SyncDescriptor(ExplorerView),
order: 1,
canToggleVisibility: false,
openCommandActionDescriptor: {
id: VIEW_CONTAINER.id,
title: localize('explore', "Explorer"),
mnemonicTitle: localize({ key: 'miViewExplorer', comment: ['&& denotes a mnemonic'] }, "&&Explorer"),
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_E },
order: 0
},
focusCommand: {
id: 'workbench.explorer.fileView.focus'
}
Expand Down Expand Up @@ -283,7 +276,14 @@ export const VIEW_CONTAINER: ViewContainer = viewContainerRegistry.registerViewC
icon: explorerViewIcon,
alwaysUseContainerInfo: true,
order: 0,
}, ViewContainerLocation.Sidebar, { donotRegisterOpenCommand: true, isDefault: true });
openCommandActionDescriptor: {
id: VIEWLET_ID,
title: localize('explore', "Explorer"),
mnemonicTitle: localize({ key: 'miViewExplorer', comment: ['&& denotes a mnemonic'] }, "&&Explorer"),
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_E },
order: 0
},
}, ViewContainerLocation.Sidebar, { isDefault: true });

const viewsRegistry = Registry.as<IViewsRegistry>(Extensions.ViewsRegistry);
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
Expand Down

0 comments on commit c11bf9d

Please sign in to comment.