@lvce-editor/quick-pick-worker 4.29.1 → 4.30.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.
|
@@ -2927,7 +2927,7 @@ const getPicks$c = async () => {
|
|
|
2927
2927
|
const emptyMatches = [];
|
|
2928
2928
|
|
|
2929
2929
|
const getWorkspacePath = async () => {
|
|
2930
|
-
return invoke$4('Workspace.
|
|
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
|
-
|
|
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;
|