@lvce-editor/extension-search-view 7.18.0 → 7.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.
@@ -3827,7 +3827,7 @@ const set = rpc => {
3827
3827
  state.connected = true;
3828
3828
  };
3829
3829
 
3830
- const handleMessagePort = async (port, viewletCommandMap) => {
3830
+ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
3831
3831
  const executeViewletCommand = async (uid, command, ...args) => {
3832
3832
  const fn = viewletCommandMap[`SearchExtensions.${command}`];
3833
3833
  if (typeof fn !== 'function') {
@@ -3842,7 +3842,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
3842
3842
  },
3843
3843
  messagePort: port
3844
3844
  });
3845
- set(rpc);
3845
+ if (setAsRendererProcess) {
3846
+ set(rpc);
3847
+ }
3846
3848
  };
3847
3849
 
3848
3850
  const handleScrollBarCaptureLost = state => {
@@ -5216,7 +5218,7 @@ const toggleSuggest = state => {
5216
5218
  return state.suggestOpen ? closeSuggest(state) : openSuggest(state);
5217
5219
  };
5218
5220
 
5219
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
5221
+ const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
5220
5222
  const commandMap = {
5221
5223
  'Extensions.copyExtensionId': wrapCommand(copyExtensionId),
5222
5224
  'Extensions.copyExtensionInfo': wrapCommand(copyExtensionInfo),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-search-view",
3
- "version": "7.18.0",
3
+ "version": "7.19.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "repository": {
6
6
  "type": "git",