Skip to content

Commit

Permalink
fixup! Fix context-keys ScmProvider update, add submenu plugin contri…
Browse files Browse the repository at this point in the history
…bution
  • Loading branch information
vinokurig committed Feb 1, 2021
1 parent 1d33364 commit 8bbc696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/tab-bar-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class TabBarToolbar extends ReactWidget {
const toDisposeOnHide = new DisposableCollection();
for (const [, item] of this.more) {
// Register a submenu for the item, if the group is in format `<group>/<submenu name>/<group in the submenu>`
if (item.group!.indexOf('/') !== -1) {
if (/.*\/.*\/.*/g.test(item.group!)) {
const split = item.group!.split('/');
split.splice(2);
toDisposeOnHide.push(this.menus.registerSubmenu([...menuPath, ...split], split![1]));
Expand Down

0 comments on commit 8bbc696

Please sign in to comment.