提交 a9da51fd 编写于 作者: R rebornix

document add/delete events

上级 3c710dfc
...@@ -931,6 +931,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN ...@@ -931,6 +931,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
} }
const onDidReceiveMessage = new Emitter<any>(); const onDidReceiveMessage = new Emitter<any>();
const document = this._documents.get(revivedUri.toString())!;
let editor = new ExtHostNotebookEditor( let editor = new ExtHostNotebookEditor(
viewType, viewType,
...@@ -938,10 +939,12 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN ...@@ -938,10 +939,12 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
revivedUri, revivedUri,
this._proxy, this._proxy,
onDidReceiveMessage, onDidReceiveMessage,
this._documents.get(revivedUri.toString())!, document,
this._documentsAndEditors this._documentsAndEditors
); );
this._onDidOpenNotebookDocument.fire(document);
// TODO, does it already exist? // TODO, does it already exist?
this._editors.set(revivedUri.toString(), { editor, onDidReceiveMessage }); this._editors.set(revivedUri.toString(), { editor, onDidReceiveMessage });
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册