@lvce-editor/chat-tool-worker 9.3.0 → 9.4.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.
|
@@ -1189,8 +1189,8 @@ const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
|
1189
1189
|
const readFile = async uri => {
|
|
1190
1190
|
return invoke$1('FileSystem.readFile', uri);
|
|
1191
1191
|
};
|
|
1192
|
-
const sendMessagePortToChatStorageWorker = async port => {
|
|
1193
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatStorageWorker', port, 'HandleMessagePort.handleMessagePort');
|
|
1192
|
+
const sendMessagePortToChatStorageWorker = async (port, rpcId) => {
|
|
1193
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToChatStorageWorker', port, 'HandleMessagePort.handleMessagePort', rpcId);
|
|
1194
1194
|
};
|
|
1195
1195
|
const writeFile = async (uri, text) => {
|
|
1196
1196
|
await invoke$1('FileSystem.writeFile', uri, text);
|
|
@@ -1312,8 +1312,7 @@ const executeEditFileTool = async (args, _options) => {
|
|
|
1312
1312
|
const nextContent = applyTextEdit(content, start, end, text);
|
|
1313
1313
|
await writeFile(uri, nextContent);
|
|
1314
1314
|
return {
|
|
1315
|
-
ok: true
|
|
1316
|
-
uri
|
|
1315
|
+
ok: true
|
|
1317
1316
|
};
|
|
1318
1317
|
} catch (error) {
|
|
1319
1318
|
return {
|