@lvce-editor/quick-pick-worker 4.29.1 → 4.29.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.
@@ -2927,7 +2927,7 @@ const getPicks$c = async () => {
2927
2927
  const emptyMatches = [];
2928
2928
 
2929
2929
  const getWorkspacePath = async () => {
2930
- return invoke$4('Workspace.getPath');
2930
+ return invoke$4('Workspace.getUri');
2931
2931
  };
2932
2932
 
2933
2933
  const state$1 = {};
@@ -3099,7 +3099,14 @@ const getPicks$b = async searchValue => {
3099
3099
  // If preferences are unavailable, preserve the existing uncached search behavior.
3100
3100
  }
3101
3101
  const cached = cacheEnabled ? await get(workspace) : undefined;
3102
- const response = await searchFile(workspace, searchValue, true, '', cacheEnabled ? cached?.hash ?? null : undefined);
3102
+ let response;
3103
+ try {
3104
+ response = await searchFile(workspace, searchValue, true, '', cacheEnabled ? cached?.hash ?? null : undefined);
3105
+ } catch (error) {
3106
+ const message = error instanceof Error ? error.message : String(error);
3107
+ await invoke$4('Notification.create', 'error', `Could not search workspace files: ${message}`);
3108
+ return [];
3109
+ }
3103
3110
  let files;
3104
3111
  if (isFileList(response)) {
3105
3112
  files = response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/quick-pick-worker",
3
- "version": "4.29.1",
3
+ "version": "4.29.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"