@lvce-editor/process-explorer-worker 3.18.0 → 3.19.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/index.js +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2376,7 +2376,7 @@ const set$1 = rpc => {
|
|
|
2376
2376
|
state.connected = true;
|
|
2377
2377
|
};
|
|
2378
2378
|
|
|
2379
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
2379
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
2380
2380
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
2381
2381
|
const fn = viewletCommandMap[`ProcessExplorer.${command}`];
|
|
2382
2382
|
if (typeof fn !== 'function') {
|
|
@@ -2391,7 +2391,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
2391
2391
|
},
|
|
2392
2392
|
messagePort: port
|
|
2393
2393
|
});
|
|
2394
|
-
|
|
2394
|
+
if (setAsRendererProcess) {
|
|
2395
|
+
set$1(rpc);
|
|
2396
|
+
}
|
|
2395
2397
|
};
|
|
2396
2398
|
|
|
2397
2399
|
const killProcess = async (state, index = state.focusedIndex) => {
|
|
@@ -3208,7 +3210,7 @@ const setUpdateInterval = (state, updateInterval) => {
|
|
|
3208
3210
|
};
|
|
3209
3211
|
};
|
|
3210
3212
|
|
|
3211
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
3213
|
+
const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
3212
3214
|
const commandMap = {
|
|
3213
3215
|
'ProcessExplorer.collapseAll': wrapCommand(collapseAll),
|
|
3214
3216
|
'ProcessExplorer.create': create$d,
|