debt - make ExtHostNotebookDocument not implement vscode.NotebookDocument but expose the API object via strict getter

This commit is contained in:
Johannes Rieken
2020-08-24 10:11:45 +02:00
parent 984b654c8b
commit cd18e7ec38
5 changed files with 223 additions and 233 deletions

View File

@@ -936,7 +936,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
},
get notebookDocuments(): vscode.NotebookDocument[] {
checkProposedApiEnabled(extension);
return extHostNotebook.notebookDocuments;
return extHostNotebook.notebookDocuments.map(d => d.notebookDocument);
},
get visibleNotebookEditors() {
checkProposedApiEnabled(extension);