@lvce-editor/quick-pick-worker 4.5.1 → 4.5.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.
@@ -3665,11 +3665,12 @@ const selectIndex = async (state, index, button = /* left */0) => {
3665
3665
  if (!pick) {
3666
3666
  return state;
3667
3667
  }
3668
- const closed = shouldCloseBeforeSelect(subId, pick);
3669
- if (closed) {
3668
+ const fn = getSelect(subId);
3669
+ if (shouldCloseBeforeSelect(subId, pick)) {
3670
3670
  await closeWidget(state.uid);
3671
+ void fn(pick, value);
3672
+ return state;
3671
3673
  }
3672
- const fn = getSelect(subId);
3673
3674
  const selectPickResult = await fn(pick, value);
3674
3675
  object(selectPickResult);
3675
3676
  string(selectPickResult.command);
@@ -3678,9 +3679,7 @@ const selectIndex = async (state, index, button = /* left */0) => {
3678
3679
  } = selectPickResult;
3679
3680
  switch (command) {
3680
3681
  case Hide:
3681
- if (!closed) {
3682
- await closeWidget(state.uid);
3683
- }
3682
+ await closeWidget(state.uid);
3684
3683
  return state;
3685
3684
  case OpenLanguageMode:
3686
3685
  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.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"