提交 1cfa610c 编写于 作者: R rebornix

model change on document.

上级 025bd27d
...@@ -963,16 +963,15 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN ...@@ -963,16 +963,15 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
} }
$acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEvent): void { $acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEvent): void {
let editor = this._getEditorFromURI(uriComponents); const document = this._documents.get(URI.revive(uriComponents).toString());
if (editor) { if (document) {
editor.editor.document.accpetModelChanged(event); document.accpetModelChanged(event);
this._onDidChangeNotebookDocument.fire({ this._onDidChangeNotebookDocument.fire({
document: editor.editor.document, document: document,
changes: [event] changes: [event]
}); });
} }
} }
$acceptEditorPropertiesChanged(uriComponents: UriComponents, data: INotebookEditorPropertiesChangeData): void { $acceptEditorPropertiesChanged(uriComponents: UriComponents, data: INotebookEditorPropertiesChangeData): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册