@lvce-editor/quick-pick-worker 4.15.0 → 4.17.0
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.
|
@@ -3832,7 +3832,7 @@ const set = rpc => {
|
|
|
3832
3832
|
state.connected = true;
|
|
3833
3833
|
};
|
|
3834
3834
|
|
|
3835
|
-
const handleRendererProcessMessagePort = async (port, viewletCommandMap) => {
|
|
3835
|
+
const handleRendererProcessMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
3836
3836
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
3837
3837
|
const fn = viewletCommandMap[`QuickPick.${command}`];
|
|
3838
3838
|
if (typeof fn !== 'function') {
|
|
@@ -3847,7 +3847,9 @@ const handleRendererProcessMessagePort = async (port, viewletCommandMap) => {
|
|
|
3847
3847
|
},
|
|
3848
3848
|
messagePort: port
|
|
3849
3849
|
});
|
|
3850
|
-
|
|
3850
|
+
if (setAsRendererProcess) {
|
|
3851
|
+
set(rpc);
|
|
3852
|
+
}
|
|
3851
3853
|
};
|
|
3852
3854
|
|
|
3853
3855
|
const initialize = async () => {
|
|
@@ -4778,7 +4780,7 @@ const showQuickPick = async ({
|
|
|
4778
4780
|
}
|
|
4779
4781
|
};
|
|
4780
4782
|
|
|
4781
|
-
const handleDirectMessagePort = port => handleRendererProcessMessagePort(port, commandMap);
|
|
4783
|
+
const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleRendererProcessMessagePort(port, commandMap, setAsRendererProcess);
|
|
4782
4784
|
const commandMap = {
|
|
4783
4785
|
'QuickPick.addMenuEntries': add$1,
|
|
4784
4786
|
'QuickPick.close': wrapCommand(close),
|