@lvce-editor/rpc-registry 9.25.0 → 9.26.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.
|
@@ -2,6 +2,7 @@ import type { Change } from '../Change/Change.ts';
|
|
|
2
2
|
import type { PositionAtCursor } from '../PositionAtCursor/PositionAtCursor.ts';
|
|
3
3
|
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, registerMockRpc: (commandMap: Record<string, any>) => import("../DisposableMockRpc/DisposableMockRpc.ts").DisposableMockRpc, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
4
4
|
export declare const sendMessagePortToExtensionHostWorker: (port: MessagePort) => Promise<void>;
|
|
5
|
+
export declare const sendMessagePortToExtensionManagementWorker: (port: MessagePort) => Promise<void>;
|
|
5
6
|
export declare const activateByEvent: (event: string) => Promise<void>;
|
|
6
7
|
export declare const applyEdit: (editorUid: number, changes: readonly Change[]) => Promise<void>;
|
|
7
8
|
export declare const applyDocumentEdits: (editorUid: number, changes: readonly Change[]) => Promise<void>;
|
|
@@ -7,6 +7,9 @@ export const sendMessagePortToExtensionHostWorker = async (port) => {
|
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
'SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, 0);
|
|
9
9
|
};
|
|
10
|
+
export const sendMessagePortToExtensionManagementWorker = async (port) => {
|
|
11
|
+
await invokeAndTransfer('SendMessagePortToExtensionManagementWorker.sendMessagePortToExtensionManagementWorker', port, 0);
|
|
12
|
+
};
|
|
10
13
|
// TODO add tests for this
|
|
11
14
|
export const activateByEvent = async (event) => {
|
|
12
15
|
// @ts-ignore
|