@lvce-editor/status-bar-worker 3.20.2 → 3.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1550,8 +1550,8 @@ const handleClick = async (state, name) => {
|
|
|
1550
1550
|
await handleClickNotification();
|
|
1551
1551
|
} else if (item.name === Problems) {
|
|
1552
1552
|
await handleClickProblems();
|
|
1553
|
-
} else if (!isEditorStatus(item.name)) {
|
|
1554
|
-
await handleClickExtensionStatusBarItem(
|
|
1553
|
+
} else if (item.command && !isEditorStatus(item.name)) {
|
|
1554
|
+
await handleClickExtensionStatusBarItem(item.command);
|
|
1555
1555
|
}
|
|
1556
1556
|
// TODO
|
|
1557
1557
|
// sendExtensionWorker([/* statusBarItemHandleClick */ 7657, /* name */ name])
|
|
@@ -1727,7 +1727,7 @@ const getActualIcon = extensionStatusBarItem => {
|
|
|
1727
1727
|
const toUiStatusBarItem = extensionStatusBarItem => {
|
|
1728
1728
|
return {
|
|
1729
1729
|
ariaLabel: extensionStatusBarItem.ariaLabel || '',
|
|
1730
|
-
command: extensionStatusBarItem.command || '',
|
|
1730
|
+
command: extensionStatusBarItem.onClick || extensionStatusBarItem.command || '',
|
|
1731
1731
|
icon: getActualIcon(extensionStatusBarItem),
|
|
1732
1732
|
name: extensionStatusBarItem.id || extensionStatusBarItem.name || '',
|
|
1733
1733
|
...(extensionStatusBarItem.spinning === true && {
|