@lvce-editor/text-search-view 1.6.5 → 1.7.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.
- package/dist/textSearchViewMain.js +28 -5
- package/package.json +1 -1
|
@@ -1135,7 +1135,7 @@ const createMockRpc = ({
|
|
|
1135
1135
|
};
|
|
1136
1136
|
|
|
1137
1137
|
const rpcs = Object.create(null);
|
|
1138
|
-
const set$
|
|
1138
|
+
const set$5 = (id, rpc) => {
|
|
1139
1139
|
rpcs[id] = rpc;
|
|
1140
1140
|
};
|
|
1141
1141
|
const get$1 = id => {
|
|
@@ -1168,7 +1168,7 @@ const create$3 = rpcId => {
|
|
|
1168
1168
|
const mockRpc = createMockRpc({
|
|
1169
1169
|
commandMap
|
|
1170
1170
|
});
|
|
1171
|
-
set$
|
|
1171
|
+
set$5(rpcId, mockRpc);
|
|
1172
1172
|
// @ts-ignore
|
|
1173
1173
|
mockRpc[Symbol.dispose] = () => {
|
|
1174
1174
|
remove$2(rpcId);
|
|
@@ -1177,7 +1177,7 @@ const create$3 = rpcId => {
|
|
|
1177
1177
|
return mockRpc;
|
|
1178
1178
|
},
|
|
1179
1179
|
set(rpc) {
|
|
1180
|
-
set$
|
|
1180
|
+
set$5(rpcId, rpc);
|
|
1181
1181
|
}
|
|
1182
1182
|
};
|
|
1183
1183
|
};
|
|
@@ -1443,6 +1443,7 @@ const None$1 = 0;
|
|
|
1443
1443
|
|
|
1444
1444
|
const LeftClick = 0;
|
|
1445
1445
|
|
|
1446
|
+
const DialogWorker = 7014;
|
|
1446
1447
|
const IconThemeWorker = 7009;
|
|
1447
1448
|
const RendererWorker = 1;
|
|
1448
1449
|
const TextSearchWorker = 7010;
|
|
@@ -1473,6 +1474,11 @@ const FocusSearchWholeWord = 34;
|
|
|
1473
1474
|
const FocusToggleDetails = 1010;
|
|
1474
1475
|
const FocusToggleReplace = 1020;
|
|
1475
1476
|
|
|
1477
|
+
const {
|
|
1478
|
+
invoke: invoke$3,
|
|
1479
|
+
set: set$4
|
|
1480
|
+
} = create$3(DialogWorker);
|
|
1481
|
+
|
|
1476
1482
|
const {
|
|
1477
1483
|
invoke: invoke$2,
|
|
1478
1484
|
set: set$3
|
|
@@ -1498,6 +1504,10 @@ const sendMessagePortToTextSearchWorker = async (port, rpcId) => {
|
|
|
1498
1504
|
const command = 'HandleMessagePort.handleMessagePort';
|
|
1499
1505
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextSearchWorker', port, command, rpcId);
|
|
1500
1506
|
};
|
|
1507
|
+
const sendMessagePortToDialogWorker = async port => {
|
|
1508
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
1509
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToDialogWorker', port, command);
|
|
1510
|
+
};
|
|
1501
1511
|
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
1502
1512
|
const command = 'IconTheme.handleMessagePort';
|
|
1503
1513
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
@@ -4082,8 +4092,16 @@ const getReplacingMessage = (fileCount, replaceCount) => {
|
|
|
4082
4092
|
return replacingManyOccurrencesInManyFiles(replaceCount, fileCount);
|
|
4083
4093
|
};
|
|
4084
4094
|
|
|
4085
|
-
const
|
|
4086
|
-
|
|
4095
|
+
const missingDialogWorkerRelay = 'Command "SendMessagePortToExtensionHostWorker.sendMessagePortToDialogWorker" not found';
|
|
4096
|
+
const prompt = async (text, options) => {
|
|
4097
|
+
try {
|
|
4098
|
+
return await invoke$3('ConfirmPrompt.prompt', text, options);
|
|
4099
|
+
} catch (error) {
|
|
4100
|
+
if (!String(error).includes(missingDialogWorkerRelay)) {
|
|
4101
|
+
throw error;
|
|
4102
|
+
}
|
|
4103
|
+
return invoke$1('ConfirmPrompt.prompt', text, options);
|
|
4104
|
+
}
|
|
4087
4105
|
};
|
|
4088
4106
|
|
|
4089
4107
|
const getReplaceAllConfirmText = (matchCount, fileCount, replacement) => {
|
|
@@ -7109,6 +7127,11 @@ const listen = async () => {
|
|
|
7109
7127
|
commandMap: commandMap
|
|
7110
7128
|
});
|
|
7111
7129
|
set$2(rpc);
|
|
7130
|
+
const dialogRpc = await create$5({
|
|
7131
|
+
commandMap: {},
|
|
7132
|
+
send: sendMessagePortToDialogWorker
|
|
7133
|
+
});
|
|
7134
|
+
set$4(dialogRpc);
|
|
7112
7135
|
};
|
|
7113
7136
|
|
|
7114
7137
|
const main = async () => {
|