@lvce-editor/quick-pick-worker 4.17.1 → 4.17.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.
|
@@ -3040,7 +3040,12 @@ const getRecentlyOpened = async () => {
|
|
|
3040
3040
|
|
|
3041
3041
|
const getPath = uri => {
|
|
3042
3042
|
if (uri.startsWith('file://')) {
|
|
3043
|
-
|
|
3043
|
+
const path = uri.slice('file://'.length);
|
|
3044
|
+
try {
|
|
3045
|
+
return decodeURIComponent(path);
|
|
3046
|
+
} catch {
|
|
3047
|
+
return path;
|
|
3048
|
+
}
|
|
3044
3049
|
}
|
|
3045
3050
|
return uri;
|
|
3046
3051
|
};
|
|
@@ -3279,7 +3284,8 @@ const selectPick$4 = async pick => {
|
|
|
3279
3284
|
};
|
|
3280
3285
|
|
|
3281
3286
|
const openWorkspaceFolder = uri => {
|
|
3282
|
-
|
|
3287
|
+
const command = uri.includes('://') ? 'Workspace.setUri' : 'Workspace.setPath';
|
|
3288
|
+
return invoke$2(command, uri);
|
|
3283
3289
|
};
|
|
3284
3290
|
|
|
3285
3291
|
// TODO selectPick should be independent of show/hide
|