@lvce-editor/activity-bar-worker 7.21.0 → 7.22.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.
@@ -2748,7 +2748,7 @@ const set = rpc => {
2748
2748
  state.connected = true;
2749
2749
  };
2750
2750
 
2751
- const handleMessagePort = async (port, viewletCommandMap) => {
2751
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
2752
2752
  const executeViewletCommand = async (uid, command, ...args) => {
2753
2753
  const fn = viewletCommandMap[`ActivityBar.${command}`];
2754
2754
  if (typeof fn !== 'function') {
@@ -2763,7 +2763,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
2763
2763
  },
2764
2764
  messagePort: port
2765
2765
  });
2766
- set(rpc);
2766
+ if (setAsRendererProcess) {
2767
+ set(rpc);
2768
+ }
2767
2769
  };
2768
2770
 
2769
2771
  const handleResize = (state, dimensions) => {
@@ -3816,7 +3818,7 @@ const wakeUp = sleepState => {
3816
3818
  set$5(sleepState.uid, sleepState, sleepState);
3817
3819
  };
3818
3820
 
3819
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
3821
+ const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
3820
3822
  const commandMap = {
3821
3823
  'ActivityBar.create': create$9,
3822
3824
  'ActivityBar.diff2': diff2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/activity-bar-worker",
3
- "version": "7.21.0",
3
+ "version": "7.22.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",