add Kernel2#createNotebookRendererCommunication

This commit is contained in:
Johannes Rieken
2021-04-14 15:09:06 +02:00
parent f157a3d201
commit d6ae97cf97
7 changed files with 189 additions and 13 deletions

View File

@@ -892,6 +892,10 @@ export interface MainThreadNotebookEditorsShape extends IDisposable {
$removeNotebookEditorDecorationType(key: string): void;
$trySetDecorations(id: string, range: ICellRange, decorationKey: string): void;
$tryApplyEdits(editorId: string, modelVersionId: number, cellEdits: ICellEditOperation[]): Promise<boolean>
$createNotebookIPC(editorId: string, handle: number, rendererId: string): Promise<boolean>
$removeNotebookIpc(editorId: string, handle: number): void;
$postMessage(editorId: string, handle: number, forRendererId: string | undefined, message: unknown): Promise<boolean>;
}
export interface MainThreadNotebookDocumentsShape extends IDisposable {
@@ -1949,6 +1953,8 @@ export type INotebookEditorViewColumnInfo = Record<string, number>;
export interface ExtHostNotebookEditorsShape {
$acceptEditorPropertiesChanged(id: string, data: INotebookEditorPropertiesChangeData): void;
$acceptEditorViewColumns(data: INotebookEditorViewColumnInfo): void;
$acceptEditorIpcMessage(handles: number[], message: unknown): void;
}
export interface ExtHostNotebookKernelsShape {