mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
This commit is contained in:
parent
7844d7378a
commit
2d131d25d1
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue