@lvce-editor/text-search-view 1.9.1 → 1.10.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.
|
@@ -4823,7 +4823,7 @@ const set = rpc => {
|
|
|
4823
4823
|
state.connected = true;
|
|
4824
4824
|
};
|
|
4825
4825
|
|
|
4826
|
-
const handleMessagePort = async (port, viewletCommandMap) => {
|
|
4826
|
+
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
4827
4827
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
4828
4828
|
const fn = viewletCommandMap[`TextSearch.${command}`];
|
|
4829
4829
|
if (typeof fn !== 'function') {
|
|
@@ -4838,7 +4838,9 @@ const handleMessagePort = async (port, viewletCommandMap) => {
|
|
|
4838
4838
|
},
|
|
4839
4839
|
messagePort: port
|
|
4840
4840
|
});
|
|
4841
|
-
|
|
4841
|
+
if (setAsRendererProcess) {
|
|
4842
|
+
set(rpc);
|
|
4843
|
+
}
|
|
4842
4844
|
};
|
|
4843
4845
|
|
|
4844
4846
|
const handlePullResultsFound = async (state, resultSearchId, newResults) => {
|
|
@@ -7061,7 +7063,7 @@ const handleContextMenu = async (state, button, x, y) => {
|
|
|
7061
7063
|
return newState;
|
|
7062
7064
|
};
|
|
7063
7065
|
|
|
7064
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
7066
|
+
const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
7065
7067
|
const commandMap = {
|
|
7066
7068
|
'TextSearch.clearSearchResults': wrapCommand(clearSearchResults$1),
|
|
7067
7069
|
'TextSearch.collapseAll': wrapCommand(collapseAll$1),
|