Skip to content

Commit 2d131d2

Browse files
authored
1 parent 7844d73 commit 2d131d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/vs/workbench/api/browser/mainThreadStatusBar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class MainThreadStatusBar implements MainThreadStatusBarShape {
4343
entryId,
4444
name: item.entry.name,
4545
text: item.entry.text,
46-
command: typeof item.entry.command === 'string' ? item.entry.command : undefined,
46+
command: typeof item.entry.command === 'string' ? item.entry.command : typeof item.entry.command === 'object' ? item.entry.command.id : undefined,
4747
priority: item.priority,
4848
alignLeft: item.alignment === StatusbarAlignment.LEFT
4949
};

src/vs/workbench/api/browser/statusBarExtensionPoint.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ export class StatusBarItemsExtensionPoint {
242242
ExtensionIdentifier.toKey(entry.description.identifier),
243243
candidate.name ?? entry.description.displayName ?? entry.description.name,
244244
candidate.text,
245-
undefined, undefined, undefined, undefined,
245+
undefined,
246+
candidate.command ? { id: candidate.command, title: candidate.name } : undefined,
247+
undefined, undefined,
246248
candidate.alignment === 'left',
247249
candidate.priority,
248250
undefined

0 commit comments

Comments
 (0)