move notebook save event into notebook editor model service, remove resolve/save/backup from notebook service and let editor model use content provider directly

This commit is contained in:
Johannes Rieken
2021-03-19 13:13:40 +01:00
parent a27b6f7449
commit 7d99c47b75
10 changed files with 61 additions and 78 deletions

View File

@@ -542,7 +542,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
// --- open, save, saveAs, backup
async $openNotebook(viewType: string, uri: UriComponents, backupId: string | undefined, token: CancellationToken, untitledDocumentData?: VSBuffer): Promise<NotebookDataDto> {
async $openNotebook(viewType: string, uri: UriComponents, backupId: string | undefined, untitledDocumentData: VSBuffer | undefined, token: CancellationToken): Promise<NotebookDataDto> {
const { provider } = this._getProviderData(viewType);
const data = await provider.openNotebook(URI.revive(uri), { backupId, untitledDocumentData: untitledDocumentData?.buffer }, token);
return {