@lvce-editor/text-search-worker 2.9.0 → 2.11.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.
@@ -506,6 +506,7 @@ const create = (uid, x, y, width, height, workspacePath, assetDir) => {
506
506
  focusSource: User
507
507
  };
508
508
  set(uid, state, state);
509
+ return state;
509
510
  };
510
511
 
511
512
  // based on https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/common/arrays.ts#L625 (License MIT)
@@ -1527,7 +1528,7 @@ const getNewDeltaPercent = (height, scrollBarHeight, relativeY) => {
1527
1528
  };
1528
1529
  };
1529
1530
 
1530
- const RE_PROTOCOL = /^([a-z-]+):\/\//;
1531
+ const RE_PROTOCOL = /^([a-z-\d]+):\/\//;
1531
1532
  const getProtocol = uri => {
1532
1533
  const protocolMatch = uri.match(RE_PROTOCOL);
1533
1534
  if (protocolMatch) {
@@ -2698,7 +2699,7 @@ const replaceAllAndPrompt = async (workspacePath, items, replacement, matchCount
2698
2699
  const confirmTitle = replaceAll$1();
2699
2700
  const confirmAccept = replace();
2700
2701
  const confirmText = getReplaceAllConfirmText(matchCount, fileCount, replacement);
2701
- const shouldReplace = await execute('ConfirmPrompt.prompt', confirmText, {
2702
+ const shouldReplace = await invoke$1('ConfirmPrompt.prompt', confirmText, {
2702
2703
  title: confirmTitle,
2703
2704
  confirmMessage: confirmAccept
2704
2705
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "Text Search Worker",
5
5
  "main": "dist/textSearchWorkerMain.js",
6
6
  "type": "module",