@lvce-editor/quick-pick-worker 4.5.1 → 4.5.3

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.
@@ -3471,6 +3471,9 @@ const Custom = 'quickPick://custom';
3471
3471
  const GoToLine = 'quickPick://go-to-line';
3472
3472
 
3473
3473
  const getDefaultValue = (id, uri = '') => {
3474
+ if (uri === GoToLine) {
3475
+ return GoToLine$1;
3476
+ }
3474
3477
  if (uri === WorkspaceSymbol) {
3475
3478
  return WorkspaceSymbol$1;
3476
3479
  }
@@ -3665,11 +3668,12 @@ const selectIndex = async (state, index, button = /* left */0) => {
3665
3668
  if (!pick) {
3666
3669
  return state;
3667
3670
  }
3668
- const closed = shouldCloseBeforeSelect(subId, pick);
3669
- if (closed) {
3671
+ const fn = getSelect(subId);
3672
+ if (shouldCloseBeforeSelect(subId, pick)) {
3670
3673
  await closeWidget(state.uid);
3674
+ void fn(pick, value);
3675
+ return state;
3671
3676
  }
3672
- const fn = getSelect(subId);
3673
3677
  const selectPickResult = await fn(pick, value);
3674
3678
  object(selectPickResult);
3675
3679
  string(selectPickResult.command);
@@ -3678,9 +3682,7 @@ const selectIndex = async (state, index, button = /* left */0) => {
3678
3682
  } = selectPickResult;
3679
3683
  switch (command) {
3680
3684
  case Hide:
3681
- if (!closed) {
3682
- await closeWidget(state.uid);
3683
- }
3685
+ await closeWidget(state.uid);
3684
3686
  return state;
3685
3687
  case OpenLanguageMode:
3686
3688
  return loadContent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/quick-pick-worker",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"