@lvce-editor/rpc-registry 5.6.0 → 5.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { RpcId } from '@lvce-editor/constants';
|
|
1
2
|
import { createMockRpc } from '@lvce-editor/rpc';
|
|
2
3
|
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
3
|
-
const
|
|
4
|
-
export const { dispose, invoke, invokeAndTransfer, set } = RpcFactory.create(id);
|
|
4
|
+
export const { dispose, invoke, invokeAndTransfer, set } = RpcFactory.create(RpcId.ExtensionManagementWorker);
|
|
5
5
|
export const registerMockRpc = (commandMap) => {
|
|
6
6
|
const mockRpc = createMockRpc({ commandMap });
|
|
7
7
|
set(mockRpc);
|
|
@@ -202,7 +202,7 @@ export const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
|
|
|
202
202
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
|
|
203
203
|
};
|
|
204
204
|
export const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
205
|
-
const command = '
|
|
205
|
+
const command = 'Extensions.handleMessagePort';
|
|
206
206
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
207
207
|
};
|
|
208
208
|
export const getPreference = async (key) => {
|