@lvce-editor/rpc-registry 2.23.0 → 2.24.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 +12 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ export interface RendererWorkerApi {
|
|
|
145
145
|
readonly "ActivityBar.selectCurrent": () => Promise<void>;
|
|
146
146
|
readonly "BulkReplacement.applyBulkReplacement": (edits: readonly BulkReplacementEdit[]) => Promise<void>;
|
|
147
147
|
readonly "ClipBoard.readNativeFiles": () => Promise<readonly string[]>;
|
|
148
|
+
readonly "ClipBoard.readText": () => Promise<string>;
|
|
148
149
|
readonly "ClipBoard.writeNativeFiles": (type: string, files: readonly string[]) => Promise<void>;
|
|
149
150
|
readonly "ClipBoard.writeText": (text: string) => Promise<void>;
|
|
150
151
|
readonly "ColorTheme.getColorThemeNames": () => Promise<readonly string[]>;
|
|
@@ -278,6 +279,8 @@ export interface RendererWorkerApi {
|
|
|
278
279
|
readonly "FindWidget.focusNext": () => Promise<void>;
|
|
279
280
|
readonly "FindWidget.handleInput": (value: string) => Promise<void>;
|
|
280
281
|
readonly "Focus.setFocus": (focusId: number) => Promise<void>;
|
|
282
|
+
readonly "Format.format": (editor: any) => Promise<any>;
|
|
283
|
+
readonly "GetEditorSourceActions.getEditorSourceActions": () => Promise<any>;
|
|
281
284
|
readonly "GetWindowId.getWindowId": () => Promise<number>;
|
|
282
285
|
readonly "IconTheme.getFileIcon": (options: any) => Promise<string>;
|
|
283
286
|
readonly "IconTheme.getFolderIcon": (options: any) => Promise<string>;
|
|
@@ -288,6 +291,7 @@ export interface RendererWorkerApi {
|
|
|
288
291
|
readonly "IframeInspector.focusNext": () => Promise<void>;
|
|
289
292
|
readonly "IframeInspector.focusPrevious": () => Promise<void>;
|
|
290
293
|
readonly "IframeInspector.selectIndex": (index: number) => Promise<void>;
|
|
294
|
+
readonly "IpcParent.create": (options: any) => Promise<void>;
|
|
291
295
|
readonly "KeyBindings.addKeyBinding": () => Promise<void>;
|
|
292
296
|
readonly "KeyBindings.changeWhenExpression": () => Promise<void>;
|
|
293
297
|
readonly "KeyBindings.clearInput": () => Promise<void>;
|
|
@@ -366,7 +370,7 @@ export interface RendererWorkerApi {
|
|
|
366
370
|
readonly "SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
367
371
|
readonly "SendMessagePortToFileSystemProcess.sendMessagePortToFileSystemProcess": (port: MessagePort, outerCommand: string, rpcId: number) => Promise<void>;
|
|
368
372
|
readonly "SideBar.openViewlet": (id: string) => Promise<void>;
|
|
369
|
-
readonly "SideBar.show": (id: string) => Promise<void>;
|
|
373
|
+
readonly "SideBar.show": (id: string, focus?: boolean) => Promise<void>;
|
|
370
374
|
readonly "Source Control.acceptInput": () => Promise<void>;
|
|
371
375
|
readonly "Source Control.handleClickSourceControlButtons": (index: number, name: string) => Promise<void>;
|
|
372
376
|
readonly "Source Control.handleInput": (text: string) => Promise<void>;
|
|
@@ -438,9 +442,14 @@ export interface SharedProcessApi {
|
|
|
438
442
|
}
|
|
439
443
|
declare const invoke$10: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, invokeAndTransfer$10: <T extends keyof SharedProcessApi>(method: T, ...params: Parameters<SharedProcessApi[T]>) => ReturnType<SharedProcessApi[T]>, set$11: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
440
444
|
export interface SyntaxHighlightingWorkerApi {
|
|
441
|
-
readonly "
|
|
445
|
+
readonly "GetTokensViewport.getTokensViewport": (editor: any, startLineIndex: number, endLineIndex: number, hasLinesToSend: boolean, id: number, linesToSend: readonly any[]) => Promise<any>;
|
|
446
|
+
readonly "HandleMessagePort.handleMessagePort": (port: MessagePort) => Promise<void>;
|
|
447
|
+
readonly "TextDocument.setLines": (documentId: string, lines: readonly string[]) => Promise<void>;
|
|
448
|
+
readonly "Tokenizer.load": (languageId: string, tokenizePath: string) => Promise<void>;
|
|
449
|
+
readonly "Tokenizer.tokenizeCodeBlock": (codeBlock: string, languageId: string, tokenizerPath: string) => Promise<any>;
|
|
450
|
+
readonly "Tokenizer.tokenizeIncremental": (id: any, languageId: string, oldLine: string, newLine: string, rowIndex: number, minLineY: number) => any[] | undefined;
|
|
442
451
|
}
|
|
443
|
-
declare const invoke$11: <T extends
|
|
452
|
+
declare const invoke$11: <T extends keyof SyntaxHighlightingWorkerApi>(method: T, ...params: Parameters<SyntaxHighlightingWorkerApi[T]>) => ReturnType<SyntaxHighlightingWorkerApi[T]>, invokeAndTransfer$11: <T extends keyof SyntaxHighlightingWorkerApi>(method: T, ...params: Parameters<SyntaxHighlightingWorkerApi[T]>) => ReturnType<SyntaxHighlightingWorkerApi[T]>, set$12: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
444
453
|
|
|
445
454
|
declare namespace SyntaxHighlightingWorker$1 {
|
|
446
455
|
export { invoke$11 as invoke, invokeAndTransfer$11 as invokeAndTransfer, set$12 as set };
|