@lvce-editor/rpc-registry 5.11.0 → 6.0.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/index.d.ts CHANGED
@@ -70,6 +70,7 @@ declare const enable2: (id: string, platform: number) => Promise<void>;
70
70
  declare const disable: (id: string) => Promise<void>;
71
71
  declare const disable2: (id: string, platform: number) => Promise<void>;
72
72
  declare const getExtension: (id: string) => Promise<any>;
73
+ declare const getLanguages: (platform: number, assetDir: string) => Promise<any>;
73
74
  declare const install: (id: string) => Promise<void>;
74
75
  declare const uninstall: (id: string) => Promise<void>;
75
76
  declare const dispose$8: () => Promise<void>, invoke$8: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$8: (method: string, ...params: readonly unknown[]) => Promise<any>, set$8: (rpc: import("@lvce-editor/rpc").Rpc) => void;
@@ -168,7 +169,7 @@ declare const showMessageBox: (options: any) => Promise<void>;
168
169
  declare const handleDebugResumed: (params: any) => Promise<void>;
169
170
  declare const openWidget: (name: string) => Promise<void>;
170
171
  declare const getIcons$1: (requests: readonly any[]) => Promise<readonly string[]>;
171
- declare const activateByEvent$1: (event: string) => Promise<void>;
172
+ declare const activateByEvent$1: (event: string, assetDir: string, platform: number) => Promise<void>;
172
173
  declare const setAdditionalFocus: (focusKey: number) => Promise<void>;
173
174
  declare const getActiveEditorId: () => Promise<number>;
174
175
  declare const getWorkspacePath: () => Promise<string>;
@@ -268,7 +269,7 @@ declare namespace ExtensionHost {
268
269
  export { dispose$6 as dispose, executeFileReferenceProvider, executeReferenceProvider, getRuntimeStatus, invoke$6 as invoke, invokeAndTransfer$6 as invokeAndTransfer, registerMockRpc$1 as registerMockRpc, set$6 as set };
269
270
  }
270
271
  declare namespace ExtensionManagementWorker {
271
- export { disable, disable2, dispose$7 as dispose, enable, enable2, getExtension, install, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, registerMockRpc$2 as registerMockRpc, set$7 as set, uninstall };
272
+ export { disable, disable2, dispose$7 as dispose, enable, enable2, getExtension, getLanguages, install, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, registerMockRpc$2 as registerMockRpc, set$7 as set, uninstall };
272
273
  }
273
274
  declare namespace FileSystemProcess {
274
275
  export { appendFile, copy, dispose$8 as dispose, exists, getFolderSize, getPathSeparator, getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir, readDirWithFileTypes, readFile, readJson, registerMockRpc$3 as registerMockRpc, remove, rename, set$8 as set, stat, writeFile };
@@ -22,6 +22,9 @@ export const disable2 = (id, platform) => {
22
22
  export const getExtension = (id) => {
23
23
  return invoke(`Extensions.getExtension`, id);
24
24
  };
25
+ export const getLanguages = (platform, assetDir) => {
26
+ return invoke('Languages.getLanguages', platform, assetDir);
27
+ };
25
28
  export const install = (id) => {
26
29
  return invoke(`Extensions.install`, id);
27
30
  };
@@ -168,8 +168,8 @@ export const getIcons = async (requests) => {
168
168
  const icons = await invoke('IconTheme.getIcons', requests);
169
169
  return icons;
170
170
  };
171
- export const activateByEvent = (event) => {
172
- return invoke('ExtensionHostManagement.activateByEvent', event);
171
+ export const activateByEvent = (event, assetDir, platform) => {
172
+ return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
173
173
  };
174
174
  export const setAdditionalFocus = (focusKey) => {
175
175
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/rpc-registry",
3
- "version": "5.11.0",
3
+ "version": "6.0.0",
4
4
  "description": "Rpc Registry",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "main": "dist/index.js",
14
14
  "dependencies": {
15
15
  "@lvce-editor/assert": "^1.5.1",
16
- "@lvce-editor/constants": "^2.0.0",
16
+ "@lvce-editor/constants": "^2.2.0",
17
17
  "@lvce-editor/rpc": "^4.20.0"
18
18
  },
19
19
  "types": "dist/index.d.ts"