add vscode.notebooks.notebookDocuments-api, https://github.com/microsoft/vscode/issues/93265

This commit is contained in:
Johannes Rieken
2020-06-09 16:23:10 +02:00
parent c5a3846e2b
commit aef90f8fda
4 changed files with 17 additions and 1 deletions

View File

@@ -678,6 +678,10 @@ 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>();