@lvce-editor/running-extensions-view 1.13.1 → 1.14.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.
|
@@ -1117,7 +1117,7 @@ const createMockRpc = ({
|
|
|
1117
1117
|
};
|
|
1118
1118
|
|
|
1119
1119
|
const rpcs = Object.create(null);
|
|
1120
|
-
const set$
|
|
1120
|
+
const set$6 = (id, rpc) => {
|
|
1121
1121
|
rpcs[id] = rpc;
|
|
1122
1122
|
};
|
|
1123
1123
|
const get$1 = id => {
|
|
@@ -1150,7 +1150,7 @@ const create$2 = rpcId => {
|
|
|
1150
1150
|
const mockRpc = createMockRpc({
|
|
1151
1151
|
commandMap
|
|
1152
1152
|
});
|
|
1153
|
-
set$
|
|
1153
|
+
set$6(rpcId, mockRpc);
|
|
1154
1154
|
// @ts-ignore
|
|
1155
1155
|
mockRpc[Symbol.dispose] = () => {
|
|
1156
1156
|
remove(rpcId);
|
|
@@ -1159,7 +1159,7 @@ const create$2 = rpcId => {
|
|
|
1159
1159
|
return mockRpc;
|
|
1160
1160
|
},
|
|
1161
1161
|
set(rpc) {
|
|
1162
|
-
set$
|
|
1162
|
+
set$6(rpcId, rpc);
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
};
|
|
@@ -1342,6 +1342,7 @@ const None$1 = 0;
|
|
|
1342
1342
|
const Electron = 2;
|
|
1343
1343
|
|
|
1344
1344
|
const ClipBoardWorker = 3400;
|
|
1345
|
+
const DialogWorker = 7014;
|
|
1345
1346
|
const ExtensionManagementWorker = 9006;
|
|
1346
1347
|
const MainProcess = -5;
|
|
1347
1348
|
const RendererWorker = 1;
|
|
@@ -1351,13 +1352,18 @@ const SetDom2 = 'Viewlet.setDom2';
|
|
|
1351
1352
|
const SetPatches = 'Viewlet.setPatches';
|
|
1352
1353
|
|
|
1353
1354
|
const {
|
|
1354
|
-
invoke: invoke$
|
|
1355
|
-
set: set$
|
|
1355
|
+
invoke: invoke$4,
|
|
1356
|
+
set: set$5
|
|
1356
1357
|
} = create$2(ClipBoardWorker);
|
|
1357
1358
|
const writeText = async text => {
|
|
1358
|
-
return invoke$
|
|
1359
|
+
return invoke$4('ClipBoard.writeText', text);
|
|
1359
1360
|
};
|
|
1360
1361
|
|
|
1362
|
+
const {
|
|
1363
|
+
invoke: invoke$3,
|
|
1364
|
+
set: set$4
|
|
1365
|
+
} = create$2(DialogWorker);
|
|
1366
|
+
|
|
1361
1367
|
const {
|
|
1362
1368
|
invoke: invoke$2,
|
|
1363
1369
|
set: set$3
|
|
@@ -1387,9 +1393,9 @@ const sendMessagePortToClipBoardWorker = async (port, rpcId) => {
|
|
|
1387
1393
|
const command = 'ClipBoard.handleMessagePort';
|
|
1388
1394
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToClipBoardWorker', port, command, rpcId);
|
|
1389
1395
|
};
|
|
1390
|
-
const
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1396
|
+
const sendMessagePortToDialogWorker = async port => {
|
|
1397
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
1398
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToDialogWorker', port, command);
|
|
1393
1399
|
};
|
|
1394
1400
|
const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
1395
1401
|
const command = 'Extensions.handleMessagePort';
|
|
@@ -2496,7 +2502,7 @@ const reportIssue = async (state, index) => {
|
|
|
2496
2502
|
} = state;
|
|
2497
2503
|
const issuesUrl = getIssuesUrl(extensions[index]?.repository);
|
|
2498
2504
|
if (!issuesUrl) {
|
|
2499
|
-
await
|
|
2505
|
+
await invoke$3('ConfirmPrompt.prompt', reportingIssuesNotSupported(), undefined);
|
|
2500
2506
|
return state;
|
|
2501
2507
|
}
|
|
2502
2508
|
const cmd = getOpenCommand(platform);
|
|
@@ -2519,7 +2525,7 @@ const setExtensions = (state, extensions) => {
|
|
|
2519
2525
|
};
|
|
2520
2526
|
|
|
2521
2527
|
const startProfile = async state => {
|
|
2522
|
-
await
|
|
2528
|
+
await invoke$3('ConfirmPrompt.prompt', extensionHostProfilingNotAvailable(), undefined);
|
|
2523
2529
|
return state;
|
|
2524
2530
|
};
|
|
2525
2531
|
|
|
@@ -2542,7 +2548,7 @@ const takeHeapSnapshot = async (state, index) => {
|
|
|
2542
2548
|
await invoke('Main.openUri', uri);
|
|
2543
2549
|
} catch (error) {
|
|
2544
2550
|
const message = error instanceof Error ? error.message : String(error);
|
|
2545
|
-
await
|
|
2551
|
+
await invoke$3('ConfirmPrompt.prompt', message, undefined);
|
|
2546
2552
|
return state;
|
|
2547
2553
|
}
|
|
2548
2554
|
return state;
|
|
@@ -2579,7 +2585,7 @@ const initializeClipBoardWorker = async () => {
|
|
|
2579
2585
|
commandMap: {},
|
|
2580
2586
|
send: send$2
|
|
2581
2587
|
});
|
|
2582
|
-
set$
|
|
2588
|
+
set$5(rpc);
|
|
2583
2589
|
};
|
|
2584
2590
|
|
|
2585
2591
|
const send$1 = async port => {
|
|
@@ -2614,6 +2620,11 @@ const initializeRendererWorker = async () => {
|
|
|
2614
2620
|
const listen = async () => {
|
|
2615
2621
|
registerCommands(commandMap);
|
|
2616
2622
|
await Promise.all([initializeRendererWorker(), initializeClipBoardWorker(), initializeExtensionManagementWorker(), initializeMainProcess()]);
|
|
2623
|
+
const dialogRpc = await create$4({
|
|
2624
|
+
commandMap: {},
|
|
2625
|
+
send: sendMessagePortToDialogWorker
|
|
2626
|
+
});
|
|
2627
|
+
set$4(dialogRpc);
|
|
2617
2628
|
};
|
|
2618
2629
|
|
|
2619
2630
|
const main = async () => {
|