From c120c15055707f4e7430a2e9ea9e2d32a8de3b2d Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 13 May 2020 13:58:15 -0700 Subject: [PATCH] Fix postmessage on notebook editor. --- src/vs/workbench/api/browser/mainThreadNotebook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/browser/mainThreadNotebook.ts b/src/vs/workbench/api/browser/mainThreadNotebook.ts index 9313542a885..0db3c42cf4b 100644 --- a/src/vs/workbench/api/browser/mainThreadNotebook.ts +++ b/src/vs/workbench/api/browser/mainThreadNotebook.ts @@ -184,7 +184,7 @@ export class MainThreadNotebooks extends Disposable implements MainThreadNoteboo const activeEditorPane = this.editorService.activeEditorPane as any | undefined; if (activeEditorPane?.isNotebookEditor) { - const notebookEditor = (activeEditorPane as INotebookEditor); + const notebookEditor = (activeEditorPane.getControl() as INotebookEditor); if (notebookEditor.viewModel?.handle === handle) { notebookEditor.postMessage(value);