mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
model change on document.
This commit is contained in:
@@ -963,16 +963,15 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
|
||||
}
|
||||
|
||||
$acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEvent): void {
|
||||
let editor = this._getEditorFromURI(uriComponents);
|
||||
const document = this._documents.get(URI.revive(uriComponents).toString());
|
||||
|
||||
if (editor) {
|
||||
editor.editor.document.accpetModelChanged(event);
|
||||
if (document) {
|
||||
document.accpetModelChanged(event);
|
||||
this._onDidChangeNotebookDocument.fire({
|
||||
document: editor.editor.document,
|
||||
document: document,
|
||||
changes: [event]
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$acceptEditorPropertiesChanged(uriComponents: UriComponents, data: INotebookEditorPropertiesChangeData): void {
|
||||
|
||||
Reference in New Issue
Block a user