@lvce-editor/output-view 2.19.0 → 2.21.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.
|
@@ -1857,7 +1857,7 @@ const set = rpc => {
|
|
|
1857
1857
|
state.connected = true;
|
|
1858
1858
|
};
|
|
1859
1859
|
|
|
1860
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
1860
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
1861
1861
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
1862
1862
|
const fn = viewletCommandMap[`Output.${command}`];
|
|
1863
1863
|
if (typeof fn !== 'function') {
|
|
@@ -1872,7 +1872,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
1872
1872
|
},
|
|
1873
1873
|
messagePort: port
|
|
1874
1874
|
});
|
|
1875
|
-
|
|
1875
|
+
if (setAsRendererProcess) {
|
|
1876
|
+
set(rpc);
|
|
1877
|
+
}
|
|
1876
1878
|
};
|
|
1877
1879
|
|
|
1878
1880
|
const createWatchId = () => {
|
|
@@ -2611,7 +2613,7 @@ const setOutputChannel = async state => {
|
|
|
2611
2613
|
};
|
|
2612
2614
|
};
|
|
2613
2615
|
|
|
2614
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
2616
|
+
const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
2615
2617
|
const commandMap = {
|
|
2616
2618
|
'Output.clear': wrapCommand(clear),
|
|
2617
2619
|
'Output.closeFindWidget': wrapCommand(closeFindWidget),
|