Johannes Rieken 2023-05-31 11:28:42 +02:00 committed by GitHub
parent 7844d7378a
commit 2d131d25d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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
};

View file

@ -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