@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
- return uri.slice('file://'.length);
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
- return invoke$2(/* Workspace.setPath */'Workspace.setPath', /* path */uri);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/quick-pick-worker",
3
- "version": "4.17.1",
3
+ "version": "4.17.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"