@lvce-editor/quick-pick-worker 4.12.1 → 4.13.1
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 +21 -3
- 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
|
|
@@ -3709,6 +3715,13 @@ const selectIndex = async (state, index, button = /* left */0) => {
|
|
|
3709
3715
|
await invoke$1(selectPickResult.itemCommand, ...(selectPickResult.itemCommandArgs || []));
|
|
3710
3716
|
}
|
|
3711
3717
|
return state;
|
|
3718
|
+
case OpenColorTheme:
|
|
3719
|
+
return loadContent({
|
|
3720
|
+
...state,
|
|
3721
|
+
args: [],
|
|
3722
|
+
uri: ColorTheme,
|
|
3723
|
+
value: ''
|
|
3724
|
+
});
|
|
3712
3725
|
case OpenLanguageMode:
|
|
3713
3726
|
return loadContent({
|
|
3714
3727
|
...state,
|
|
@@ -4230,6 +4243,7 @@ const QuickPickItem = 'QuickPickItem';
|
|
|
4230
4243
|
const QuickPickItemActive$1 = 'QuickPickItemActive';
|
|
4231
4244
|
const QuickPickItemDescription = 'QuickPickItemDescription';
|
|
4232
4245
|
const QuickPickItemLabel = 'QuickPickItemLabel';
|
|
4246
|
+
const QuickPickInputWrapper = 'QuickPickInputWrapper';
|
|
4233
4247
|
const QuickPickMaskIcon = 'QuickPickMaskIcon';
|
|
4234
4248
|
const QuickPickStatus = 'QuickPickStatus';
|
|
4235
4249
|
const ScrollBar = 'ScrollBar';
|
|
@@ -4252,7 +4266,11 @@ const QuickPickItemActive = 'QuickPickItemActive';
|
|
|
4252
4266
|
|
|
4253
4267
|
const getQuickPickInputVirtualDom = (placeholder = '') => {
|
|
4254
4268
|
const ariaLabel = typeNameofCommandToRun();
|
|
4255
|
-
return {
|
|
4269
|
+
return [{
|
|
4270
|
+
childCount: 1,
|
|
4271
|
+
className: QuickPickInputWrapper,
|
|
4272
|
+
type: Div
|
|
4273
|
+
}, {
|
|
4256
4274
|
ariaAutoComplete: 'list',
|
|
4257
4275
|
ariaExpanded: true,
|
|
4258
4276
|
ariaLabel: ariaLabel,
|
|
@@ -4269,7 +4287,7 @@ const getQuickPickInputVirtualDom = (placeholder = '') => {
|
|
|
4269
4287
|
role: ComboBox,
|
|
4270
4288
|
spellcheck: false,
|
|
4271
4289
|
type: Input
|
|
4272
|
-
};
|
|
4290
|
+
}];
|
|
4273
4291
|
};
|
|
4274
4292
|
|
|
4275
4293
|
const getQuickPickHeaderVirtualDom = (placeholder = '') => {
|
|
@@ -4277,7 +4295,7 @@ const getQuickPickHeaderVirtualDom = (placeholder = '') => {
|
|
|
4277
4295
|
childCount: 1,
|
|
4278
4296
|
className: QuickPickHeader,
|
|
4279
4297
|
type: Div
|
|
4280
|
-
}, getQuickPickInputVirtualDom(placeholder)];
|
|
4298
|
+
}, ...getQuickPickInputVirtualDom(placeholder)];
|
|
4281
4299
|
};
|
|
4282
4300
|
|
|
4283
4301
|
const getFileIconVirtualDom = icon => {
|