Skip to content

Commit

Permalink
fix #183770
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 31, 2023
1 parent cfaa193 commit ab98a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/browser/mainThreadStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class MainThreadStatusBar implements MainThreadStatusBarShape {
entryId,
name: item.entry.name,
text: item.entry.text,
command: typeof item.entry.command === 'string' ? item.entry.command : undefined,
command: typeof item.entry.command === 'string' ? item.entry.command : typeof item.entry.command === 'object' ? item.entry.command.id : undefined,
priority: item.priority,
alignLeft: item.alignment === StatusbarAlignment.LEFT
};
Expand Down
4 changes: 3 additions & 1 deletion src/vs/workbench/api/browser/statusBarExtensionPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ export class StatusBarItemsExtensionPoint {
ExtensionIdentifier.toKey(entry.description.identifier),
candidate.name ?? entry.description.displayName ?? entry.description.name,
candidate.text,
undefined, undefined, undefined, undefined,
undefined,
candidate.command ? { id: candidate.command, title: candidate.name } : undefined,
undefined, undefined,
candidate.alignment === 'left',
candidate.priority,
undefined
Expand Down

0 comments on commit ab98a27

Please sign in to comment.