@lvce-editor/status-bar-worker 3.35.3 → 3.36.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 +17 -20
- package/package.json +1 -1
|
@@ -1219,6 +1219,12 @@ const {
|
|
|
1219
1219
|
invokeAndTransfer,
|
|
1220
1220
|
set: set$5
|
|
1221
1221
|
} = create$2(RendererWorker);
|
|
1222
|
+
const initializeRendererWorkerForWorker = async commandMap => {
|
|
1223
|
+
const rpc = await create$3({
|
|
1224
|
+
commandMap
|
|
1225
|
+
});
|
|
1226
|
+
set$5(rpc);
|
|
1227
|
+
};
|
|
1222
1228
|
const sendMessagePortToTextMeasurementWorker = async port => {
|
|
1223
1229
|
const command = 'TextMeasurement.handleMessagePort';
|
|
1224
1230
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
|
|
@@ -1230,6 +1236,16 @@ const sendMessagePortToCacheWorker = async port => {
|
|
|
1230
1236
|
const getPreference = async key => {
|
|
1231
1237
|
return await invoke$3('Preferences.get', key);
|
|
1232
1238
|
};
|
|
1239
|
+
const send3 = port => {
|
|
1240
|
+
return sendMessagePortToTextMeasurementWorker(port);
|
|
1241
|
+
};
|
|
1242
|
+
const initializeTextMeasurementWorker = async () => {
|
|
1243
|
+
const rpc = await create$4({
|
|
1244
|
+
commandMap: {},
|
|
1245
|
+
send: send3
|
|
1246
|
+
});
|
|
1247
|
+
set$6(rpc);
|
|
1248
|
+
};
|
|
1233
1249
|
|
|
1234
1250
|
const toCommandId = key => {
|
|
1235
1251
|
const dotIndex = key.indexOf('.');
|
|
@@ -3375,25 +3391,6 @@ const initializeQuickPickWorker = async () => {
|
|
|
3375
3391
|
set$3(rpc);
|
|
3376
3392
|
};
|
|
3377
3393
|
|
|
3378
|
-
const initializeRenderWorker = async () => {
|
|
3379
|
-
const rpc = await create$3({
|
|
3380
|
-
commandMap: commandMap
|
|
3381
|
-
});
|
|
3382
|
-
set$5(rpc);
|
|
3383
|
-
};
|
|
3384
|
-
|
|
3385
|
-
const send = port => {
|
|
3386
|
-
// @ts-ignore
|
|
3387
|
-
return sendMessagePortToTextMeasurementWorker(port);
|
|
3388
|
-
};
|
|
3389
|
-
const initializeTextMeasurementWorkerRpc = async () => {
|
|
3390
|
-
const rpc = await create$4({
|
|
3391
|
-
commandMap: {},
|
|
3392
|
-
send
|
|
3393
|
-
});
|
|
3394
|
-
set$6(rpc);
|
|
3395
|
-
};
|
|
3396
|
-
|
|
3397
3394
|
const registerCacheWorker = async () => {
|
|
3398
3395
|
const lazyRpc = await create$4({
|
|
3399
3396
|
commandMap: {},
|
|
@@ -3410,7 +3407,7 @@ const registerCacheWorker = async () => {
|
|
|
3410
3407
|
};
|
|
3411
3408
|
const listen = async () => {
|
|
3412
3409
|
registerCommands(commandMap);
|
|
3413
|
-
await Promise.all([
|
|
3410
|
+
await Promise.all([initializeRendererWorkerForWorker(commandMap), initializeQuickPickWorker(), initializeMenuWorker(), initializeTextMeasurementWorker(), registerCacheWorker()]);
|
|
3414
3411
|
};
|
|
3415
3412
|
|
|
3416
3413
|
const main = async () => {
|