@lvce-editor/quick-pick-worker 4.13.0 → 4.13.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.
- package/dist/quickPickWorkerMain.js +16 -0
- package/package.json +1 -1
|
@@ -3029,6 +3029,7 @@ const getPicks$3 = async () => {
|
|
|
3029
3029
|
|
|
3030
3030
|
const Hide = 'hide';
|
|
3031
3031
|
const KeepOpen = '';
|
|
3032
|
+
const OpenColorTheme = 'open-color-theme';
|
|
3032
3033
|
const OpenLanguageMode = 'open-language-mode';
|
|
3033
3034
|
|
|
3034
3035
|
const selectPick$a = async pick => {
|
|
@@ -3051,6 +3052,11 @@ const shouldHide = item => {
|
|
|
3051
3052
|
};
|
|
3052
3053
|
|
|
3053
3054
|
const selectPickBuiltin = async item => {
|
|
3055
|
+
if (item.id === 'QuickPick.showColorTheme') {
|
|
3056
|
+
return {
|
|
3057
|
+
command: OpenColorTheme
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3054
3060
|
if (item.id === 'QuickPick.changeLanguageMode') {
|
|
3055
3061
|
return {
|
|
3056
3062
|
command: OpenLanguageMode
|
|
@@ -3668,6 +3674,9 @@ const createCustomPick = value => {
|
|
|
3668
3674
|
};
|
|
3669
3675
|
};
|
|
3670
3676
|
const shouldCloseBeforeSelect = (subId, pick) => {
|
|
3677
|
+
if (subId === Recent$1) {
|
|
3678
|
+
return true;
|
|
3679
|
+
}
|
|
3671
3680
|
if (subId !== Commands$1) {
|
|
3672
3681
|
return false;
|
|
3673
3682
|
}
|
|
@@ -3709,6 +3718,13 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
3709
3718
|
await invoke$1(selectPickResult.itemCommand, ...(selectPickResult.itemCommandArgs || []));
|
|
3710
3719
|
}
|
|
3711
3720
|
return state;
|
|
3721
|
+
case OpenColorTheme:
|
|
3722
|
+
return loadContent({
|
|
3723
|
+
...state,
|
|
3724
|
+
args: [],
|
|
3725
|
+
uri: ColorTheme,
|
|
3726
|
+
value: ''
|
|
3727
|
+
});
|
|
3712
3728
|
case OpenLanguageMode:
|
|
3713
3729
|
return loadContent({
|
|
3714
3730
|
...state,
|