@lvce-editor/file-system-worker 2.0.0 → 2.1.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/fileSystemWorkerMain.js +14 -0
- package/package.json +1 -1
|
@@ -1222,6 +1222,13 @@ const exists$2 = async uri => {
|
|
|
1222
1222
|
// @ts-ignore
|
|
1223
1223
|
return invoke$3('FileSystem.exists', uri);
|
|
1224
1224
|
};
|
|
1225
|
+
const registerMockRpc$1 = commandMap => {
|
|
1226
|
+
const mockRpc = createMockRpc({
|
|
1227
|
+
commandMap
|
|
1228
|
+
});
|
|
1229
|
+
set$3(mockRpc);
|
|
1230
|
+
return mockRpc;
|
|
1231
|
+
};
|
|
1225
1232
|
|
|
1226
1233
|
const FileSystemProcess = {
|
|
1227
1234
|
__proto__: null,
|
|
@@ -1238,6 +1245,7 @@ const FileSystemProcess = {
|
|
|
1238
1245
|
readDirWithFileTypes: readDirWithFileTypes$2,
|
|
1239
1246
|
readFile: readFile$4,
|
|
1240
1247
|
readJson: readJson$3,
|
|
1248
|
+
registerMockRpc: registerMockRpc$1,
|
|
1241
1249
|
remove: remove$2,
|
|
1242
1250
|
rename: rename$2,
|
|
1243
1251
|
set: set$3,
|
|
@@ -1307,6 +1315,11 @@ const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
|
|
|
1307
1315
|
// @ts-ignore
|
|
1308
1316
|
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
|
|
1309
1317
|
};
|
|
1318
|
+
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
1319
|
+
const command = 'IconTheme.handleMessagePort';
|
|
1320
|
+
// @ts-ignore
|
|
1321
|
+
await invokeAndTransfer$1('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
1322
|
+
};
|
|
1310
1323
|
const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
1311
1324
|
const command = 'FileSystem.handleMessagePort';
|
|
1312
1325
|
// @ts-ignore
|
|
@@ -1573,6 +1586,7 @@ const RendererWorker = {
|
|
|
1573
1586
|
sendMessagePortToErrorWorker,
|
|
1574
1587
|
sendMessagePortToExtensionHostWorker: sendMessagePortToExtensionHostWorker$1,
|
|
1575
1588
|
sendMessagePortToFileSystemWorker,
|
|
1589
|
+
sendMessagePortToIconThemeWorker,
|
|
1576
1590
|
sendMessagePortToMarkdownWorker,
|
|
1577
1591
|
sendMessagePortToRendererProcess,
|
|
1578
1592
|
sendMessagePortToSearchProcess,
|