@lvce-editor/text-search-worker 7.5.1 → 7.5.2

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.
@@ -5310,10 +5310,10 @@ const getRelativeFolderPath = relativePath => {
5310
5310
 
5311
5311
  const selectIndexPreview = async (state, searchResult, index) => {
5312
5312
  const {
5313
- items,
5313
+ listItems,
5314
5314
  workspacePath
5315
5315
  } = state;
5316
- const fileIndex = getFileIndex(items, index);
5316
+ const fileIndex = getFileIndex(listItems, index);
5317
5317
  if (fileIndex === -1) {
5318
5318
  throw new Error('Search result is missing file');
5319
5319
  }
@@ -5325,7 +5325,7 @@ const selectIndexPreview = async (state, searchResult, index) => {
5325
5325
  start,
5326
5326
  startColumnIndex = start
5327
5327
  } = searchResult;
5328
- const fileResult = items[fileIndex];
5328
+ const fileResult = listItems[fileIndex];
5329
5329
  const relativePath = getRelativePath(fileResult.text);
5330
5330
  const absolutePath = `${workspacePath}${relativePath}`;
5331
5331
  await openUri(absolutePath, true, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/text-search-worker",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "description": "Text Search Worker",
5
5
  "keywords": [
6
6
  "text-search"