@lvce-editor/running-extensions-view 1.24.0 → 1.25.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.
@@ -1973,7 +1973,7 @@ const set = rpc => {
1973
1973
  state.connected = true;
1974
1974
  };
1975
1975
 
1976
- const handleMessagePort = async (port, viewletCommandMap) => {
1976
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
1977
1977
  const executeViewletCommand = async (uid, command, ...args) => {
1978
1978
  const fn = viewletCommandMap[`RunningExtensions.${command}`];
1979
1979
  if (typeof fn !== 'function') {
@@ -1988,7 +1988,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
1988
1988
  },
1989
1989
  messagePort: port
1990
1990
  });
1991
- set(rpc);
1991
+ if (setAsRendererProcess) {
1992
+ set(rpc);
1993
+ }
1992
1994
  };
1993
1995
 
1994
1996
  const getRunningExtensions = async (assetDir, platform) => {
@@ -2666,7 +2668,7 @@ const takeHeapSnapshot = async (state, index) => {
2666
2668
  return state;
2667
2669
  };
2668
2670
 
2669
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
2671
+ const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
2670
2672
  const commandMap = {
2671
2673
  'RunningExtensions.copyId': wrapCommand(copyId$1),
2672
2674
  'RunningExtensions.create': create,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/running-extensions-view",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Running Extensions View Worker",
5
5
  "repository": {
6
6
  "type": "git",