@lvce-editor/status-bar-worker 3.17.0 → 3.18.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.
|
@@ -1872,7 +1872,7 @@ const handleExtensionManagementMessagePort = async port => {
|
|
|
1872
1872
|
set$4(rpc);
|
|
1873
1873
|
};
|
|
1874
1874
|
|
|
1875
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
1875
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
1876
1876
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
1877
1877
|
const fn = viewletCommandMap[`StatusBar.${command}`];
|
|
1878
1878
|
if (typeof fn !== 'function') {
|
|
@@ -1887,7 +1887,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
1887
1887
|
},
|
|
1888
1888
|
messagePort: port
|
|
1889
1889
|
});
|
|
1890
|
-
|
|
1890
|
+
if (setAsRendererProcess) {
|
|
1891
|
+
set$1(rpc);
|
|
1892
|
+
}
|
|
1891
1893
|
};
|
|
1892
1894
|
|
|
1893
1895
|
const handleProblemsSummaryChange = (state, summary) => {
|
|
@@ -2040,7 +2042,7 @@ const saveState = state => {
|
|
|
2040
2042
|
};
|
|
2041
2043
|
};
|
|
2042
2044
|
|
|
2043
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
2045
|
+
const handleDirectMessagePort = (port, setAsRendererProcess = true) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
2044
2046
|
const commandMap = {
|
|
2045
2047
|
'StatusBar.create': create$7,
|
|
2046
2048
|
'StatusBar.diff2': diff2,
|