@lvce-editor/problems-view 1.32.0 → 1.33.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.
|
@@ -2599,7 +2599,7 @@ const set = rpc => {
|
|
|
2599
2599
|
state.connected = true;
|
|
2600
2600
|
};
|
|
2601
2601
|
|
|
2602
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
2602
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
2603
2603
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
2604
2604
|
const fn = viewletCommandMap[`Problems.${command}`];
|
|
2605
2605
|
if (typeof fn !== 'function') {
|
|
@@ -2614,7 +2614,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
2614
2614
|
},
|
|
2615
2615
|
messagePort: port
|
|
2616
2616
|
});
|
|
2617
|
-
|
|
2617
|
+
if (setAsRendererProcess) {
|
|
2618
|
+
set(rpc);
|
|
2619
|
+
}
|
|
2618
2620
|
};
|
|
2619
2621
|
|
|
2620
2622
|
const getIcon = (uri, fileIconCache) => {
|
|
@@ -3786,7 +3788,7 @@ const toggleShowWarnings = state => {
|
|
|
3786
3788
|
};
|
|
3787
3789
|
};
|
|
3788
3790
|
|
|
3789
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
3791
|
+
const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
3790
3792
|
const commandMap = {
|
|
3791
3793
|
'Problems.collapseAll': wrapCommand(collapseAll$1),
|
|
3792
3794
|
'Problems.copyMessage': wrapCommand(copyMessage),
|