This commit is contained in:
Johannes Rieken
2021-04-15 16:21:06 +02:00
parent afa4a2df2c
commit b6cee1ca22
4 changed files with 10 additions and 10 deletions

View File

@@ -132,10 +132,10 @@ export class MainThreadNotebooks implements MainThreadNotebookShape {
const registration = this._notebookService.registerNotebookSerializer(viewType, extension, {
options,
dataToNotebook: (data: VSBuffer): Promise<NotebookDataDto> => {
return this._proxy.$dataToNotebook(handle, data);
return this._proxy.$dataToNotebook(handle, data, CancellationToken.None);
},
notebookToData: (data: NotebookDataDto): Promise<VSBuffer> => {
return this._proxy.$notebookToData(handle, data);
return this._proxy.$notebookToData(handle, data, CancellationToken.None);
}
});
this._notebookSerializer.set(handle, registration);