@lvce-editor/text-search-view 1.9.0 → 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) => {
|
|
@@ -4945,7 +4947,7 @@ const handleSharedInput = (state, name, value, inputSource = Script) => {
|
|
|
4945
4947
|
return fn(state, value, inputSource);
|
|
4946
4948
|
};
|
|
4947
4949
|
|
|
4948
|
-
const handleWorkspaceChange = state => {
|
|
4950
|
+
const handleWorkspaceChange = (state, workspacePath) => {
|
|
4949
4951
|
return {
|
|
4950
4952
|
...state,
|
|
4951
4953
|
deltaY: 0,
|
|
@@ -4956,7 +4958,8 @@ const handleWorkspaceChange = state => {
|
|
|
4956
4958
|
message: '',
|
|
4957
4959
|
minLineY: 0,
|
|
4958
4960
|
replacement: '',
|
|
4959
|
-
value: ''
|
|
4961
|
+
value: '',
|
|
4962
|
+
workspacePath
|
|
4960
4963
|
};
|
|
4961
4964
|
};
|
|
4962
4965
|
|
|
@@ -7060,7 +7063,7 @@ const handleContextMenu = async (state, button, x, y) => {
|
|
|
7060
7063
|
return newState;
|
|
7061
7064
|
};
|
|
7062
7065
|
|
|
7063
|
-
const handleDirectMessagePort = port => handleMessagePort(port, commandMap);
|
|
7066
|
+
const handleDirectMessagePort = (port, setAsRendererProcess) => handleMessagePort(port, commandMap, setAsRendererProcess);
|
|
7064
7067
|
const commandMap = {
|
|
7065
7068
|
'TextSearch.clearSearchResults': wrapCommand(clearSearchResults$1),
|
|
7066
7069
|
'TextSearch.collapseAll': wrapCommand(collapseAll$1),
|