Fix postmessage on notebook editor.

This commit is contained in:
rebornix
2020-05-13 13:58:15 -07:00
parent 2fe254ffb2
commit c120c15055

View File

@@ -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);