mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user