webview comm based on editor other than document.

This commit is contained in:
rebornix
2020-05-18 18:13:45 -07:00
parent d9fd263f52
commit 025bd27df7
6 changed files with 10 additions and 10 deletions

View File

@@ -954,8 +954,8 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
return editor;
}
$onDidReceiveMessage(uri: UriComponents, message: any): void {
let editor = this._getEditorFromURI(uri);
$onDidReceiveMessage(editorId: string, message: any): void {
let editor = this._editors.get(editorId);
if (editor) {
editor.onDidReceiveMessage.fire(message);