Skip to content

Commit 308259a

Browse files
committed
Revert "Have empty category up top not down at the bottom (#249055)"
This reverts commit 45cb933.
1 parent ed119b9 commit 308259a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/actionWidget/browser/actionWidgetDropdown.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class ActionWidgetDropdown extends BaseDropdown {
5656
for (const action of actions) {
5757
let category = action.category;
5858
if (!category) {
59-
category = { label: '', order: Number.MIN_SAFE_INTEGER };
59+
category = { label: '', order: Number.MAX_SAFE_INTEGER };
6060
}
6161
if (!actionsByCategory.has(category.label)) {
6262
actionsByCategory.set(category.label, []);
@@ -74,7 +74,7 @@ export class ActionWidgetDropdown extends BaseDropdown {
7474

7575
for (const [categoryLabel, categoryActions] of sortedCategories) {
7676

77-
if (categoryLabel !== '') {
77+
if (categoryLabel) {
7878
// Push headers for each category
7979
actionWidgetItems.push({
8080
label: categoryLabel,

0 commit comments

Comments
 (0)