@lvce-editor/output-view 2.19.0 → 2.20.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
- set(rpc);
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/output-view",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "description": "Output View Worker",
5
5
  "repository": {
6
6
  "type": "git",