@lvce-editor/extension-host-worker 5.27.0 → 5.28.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.
@@ -5983,6 +5983,15 @@ const matchesUri = (uri, relativeRoot, include, exclude) => {
5983
5983
  };
5984
5984
 
5985
5985
  const textSearch = async (scheme, root, query, options, assetDir) => {
5986
+ string(scheme);
5987
+ string(root);
5988
+ string(query);
5989
+ const {
5990
+ results
5991
+ } = await textSearch2(scheme, root, query, options);
5992
+ return results;
5993
+ };
5994
+ const textSearch2 = async (scheme, root, query, options, assetDir) => {
5986
5995
  string(scheme);
5987
5996
  string(root);
5988
5997
  string(query);
@@ -6000,7 +6009,10 @@ const textSearch = async (scheme, root, query, options, assetDir) => {
6000
6009
  allResults.push(...results);
6001
6010
  }
6002
6011
  }
6003
- return allResults;
6012
+ return {
6013
+ results: allResults,
6014
+ limitHit: allResults.length > options.limit
6015
+ };
6004
6016
  };
6005
6017
 
6006
6018
  const registerInterceptor = async (id, port) => {
@@ -6091,6 +6103,7 @@ const commandMap = {
6091
6103
  'TextSearchFetch.textSearch': textSearch$2,
6092
6104
  'TextSearchHtml.textSearch': textSearch$1,
6093
6105
  'TextSearchMemory.textSearch': textSearch,
6106
+ 'TextSearchMemory.textSearch2': textSearch2,
6094
6107
  'WebView.create3': createWebView3,
6095
6108
  'WebView.createWebViewWorkerRpc': createWebViewWorkerRpc,
6096
6109
  'WebView.createWebViewWorkerRpc2': createWebViewWorkerRpc2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "5.27.0",
3
+ "version": "5.28.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"