@lvce-editor/quick-pick-worker 4.29.0 → 4.29.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.
|
@@ -3581,7 +3581,7 @@ const shouldHide = item => {
|
|
|
3581
3581
|
return true;
|
|
3582
3582
|
};
|
|
3583
3583
|
|
|
3584
|
-
const selectPickBuiltin = async item => {
|
|
3584
|
+
const selectPickBuiltin = async (item, applicationId) => {
|
|
3585
3585
|
if (item.id === 'QuickPick.showColorTheme') {
|
|
3586
3586
|
return {
|
|
3587
3587
|
command: OpenColorTheme
|
|
@@ -3594,7 +3594,11 @@ const selectPickBuiltin = async item => {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
const args = item.args || [];
|
|
3596
3596
|
// TODO ids should be all numbers for efficiency -> also directly can call command
|
|
3597
|
-
|
|
3597
|
+
if (applicationId === undefined) {
|
|
3598
|
+
await invoke$4(item.id, ...args);
|
|
3599
|
+
} else {
|
|
3600
|
+
await invoke$4('Application.execute', applicationId, item.id, ...args);
|
|
3601
|
+
}
|
|
3598
3602
|
if (shouldHide(item)) {
|
|
3599
3603
|
return {
|
|
3600
3604
|
command: Hide
|
|
@@ -3631,7 +3635,7 @@ const selectPick$b = async (item, _value = '', applicationId) => {
|
|
|
3631
3635
|
if (id.startsWith('ext.')) {
|
|
3632
3636
|
return selectPickExtension(item, applicationId);
|
|
3633
3637
|
}
|
|
3634
|
-
return selectPickBuiltin(item);
|
|
3638
|
+
return selectPickBuiltin(item, applicationId);
|
|
3635
3639
|
};
|
|
3636
3640
|
|
|
3637
3641
|
const getOptions = args => {
|