add model version to notebook edits when possible, https://github.com/microsoft/vscode/issues/105283

This commit is contained in:
Johannes Rieken
2020-08-27 11:58:01 +02:00
parent fdf5b95a51
commit 470966b066
5 changed files with 20 additions and 15 deletions

View File

@@ -893,10 +893,6 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
return this._activeNotebookEditor;
}
get notebookDocuments() {
return [...this._documents.values()];
}
private _onDidOpenNotebookDocument = new Emitter<vscode.NotebookDocument>();
onDidOpenNotebookDocument: Event<vscode.NotebookDocument> = this._onDidOpenNotebookDocument.event;
private _onDidCloseNotebookDocument = new Emitter<vscode.NotebookDocument>();
@@ -941,6 +937,14 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
});
}
get notebookDocuments() {
return [...this._documents.values()];
}
lookupNotebookDocument(uri: URI): ExtHostNotebookDocument | undefined {
return this._documents.get(uri);
}
registerNotebookContentProvider(
extension: IExtensionDescription,
viewType: string,