Adopt async emitter for notebookOnWillSave (#177686)

This commit is contained in:
Peng Lyu
2023-03-20 10:31:14 -07:00
committed by GitHub
parent f7a454f3c6
commit c048e13440
6 changed files with 62 additions and 124 deletions

View File

@@ -957,7 +957,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
return extHostNotebookDocuments.onDidChangeNotebookDocument(listener, thisArg, disposables);
},
onWillSaveNotebookDocument(listener, thisArg, disposables) {
checkProposedApiEnabled(extension, 'notebokDocumentWillSave');
checkProposedApiEnabled(extension, 'notebookDocumentWillSave');
return extHostNotebookDocumentSaveParticipant.getOnWillSaveNotebookDocumentEvent(extension)(listener, thisArg, disposables);
},
get onDidOpenNotebookDocument(): Event<vscode.NotebookDocument> {