@lvce-editor/extension-search-view 7.18.0 → 7.20.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 => {
@@ -4184,6 +4186,7 @@ const getCss = state => {
4184
4186
 
4185
4187
  .ExtensionListItemDisabled:not(.ExtensionActive) {
4186
4188
  background: color-mix(in srgb, var(--SideBarBackground, rgb(30, 35, 36)) 95%, black);
4189
+ color: var(--DisabledForeground, color-mix(in srgb, var(--WorkbenchForeground) 48%, transparent));
4187
4190
  }
4188
4191
 
4189
4192
  .Extensions .ListItems {
@@ -5216,7 +5219,7 @@ const toggleSuggest = state => {
5216
5219
  return state.suggestOpen ? closeSuggest(state) : openSuggest(state);
5217
5220
  };
5218
5221
 
5219
- const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
5222
+ const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
5220
5223
  const commandMap = {
5221
5224
  'Extensions.copyExtensionId': wrapCommand(copyExtensionId),
5222
5225
  '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.20.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "repository": {
6
6
  "type": "git",