@lvce-editor/status-bar-worker 1.8.0 → 1.9.0
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.
- package/dist/statusBarWorkerMain.js +10 -4
- package/package.json +1 -1
|
@@ -1216,6 +1216,11 @@ const getMatchingItem = (itemsLeft, itemsRight, name) => {
|
|
|
1216
1216
|
return undefined;
|
|
1217
1217
|
};
|
|
1218
1218
|
|
|
1219
|
+
const handleClickExtensionStatusBarItem = async name => {
|
|
1220
|
+
// @ts-ignore
|
|
1221
|
+
await invoke$1(`ExtensionHostStatusBar.executeCommand`, name);
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1219
1224
|
const handleClickNotification = async () => {
|
|
1220
1225
|
// TODO toggle notifications
|
|
1221
1226
|
};
|
|
@@ -1224,7 +1229,7 @@ const handleClickProblems = async () => {
|
|
|
1224
1229
|
// @ts-ignore
|
|
1225
1230
|
await invoke('Layout.showPanel');
|
|
1226
1231
|
// @ts-ignore
|
|
1227
|
-
await invoke('Panel.
|
|
1232
|
+
await invoke('Panel.toggleView', 'Problems');
|
|
1228
1233
|
};
|
|
1229
1234
|
|
|
1230
1235
|
const Notifications = 'Notifications';
|
|
@@ -1244,9 +1249,10 @@ const handleClick = async (state, name) => {
|
|
|
1244
1249
|
}
|
|
1245
1250
|
if (item.name === Notifications) {
|
|
1246
1251
|
await handleClickNotification();
|
|
1247
|
-
}
|
|
1248
|
-
if (item.name === Problems) {
|
|
1252
|
+
} else if (item.name === Problems) {
|
|
1249
1253
|
await handleClickProblems();
|
|
1254
|
+
} else {
|
|
1255
|
+
await handleClickExtensionStatusBarItem(name);
|
|
1250
1256
|
}
|
|
1251
1257
|
// TODO
|
|
1252
1258
|
// sendExtensionWorker([/* statusBarItemHandleClick */ 7657, /* name */ name])
|
|
@@ -1321,7 +1327,7 @@ const itemRightUpdate = (state, newItem) => {
|
|
|
1321
1327
|
|
|
1322
1328
|
const OnStatusBarItem = 'onStatusBarItem';
|
|
1323
1329
|
|
|
1324
|
-
const GetStatusBarItems = 'ExtensionHost.
|
|
1330
|
+
const GetStatusBarItems = 'ExtensionHost.getStatusBarItems2';
|
|
1325
1331
|
|
|
1326
1332
|
const activateByEvent = event => {
|
|
1327
1333
|
return activateByEvent$1(event);
|