Skip to content

Commit

Permalink
Ensure menus with no group specified have proper grouping
Browse files Browse the repository at this point in the history
Fixes #62875
  • Loading branch information
mjbvz committed Nov 12, 2018
1 parent 30fb780 commit 642cbc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/platform/actions/common/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export class Menu implements IMenu {

for (let item of menuItems) {
// group by groupId
const groupName = item.group;
const groupName = item.group || '';
if (!group || group[0] !== groupName) {
group = [groupName || '', []];
group = [groupName, []];
this._menuGroups.push(group);
}
group![1].push(item);
Expand Down

0 comments on commit 642cbc9

Please sign in to comment.