mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
first cut of IFileWorkingCopy adoption, misses saveAs and backsnapshot are improper...
This commit is contained in:
@@ -457,10 +457,10 @@ export class MainThreadNotebooks implements MainThreadNotebookShape {
|
||||
$registerNotebookSerializer(handle: number, extension: NotebookExtensionDescription, viewType: string, options: TransientOptions): void {
|
||||
const registration = this._notebookService.registerNotebookSerializer(viewType, extension, {
|
||||
options,
|
||||
dataToNotebook: (data: Uint8Array): Promise<NotebookDataDto> => {
|
||||
dataToNotebook: (data: VSBuffer): Promise<NotebookDataDto> => {
|
||||
return this._proxy.$dataToNotebook(handle, data);
|
||||
},
|
||||
notebookToData: (data: NotebookDataDto): Promise<Uint8Array> => {
|
||||
notebookToData: (data: NotebookDataDto): Promise<VSBuffer> => {
|
||||
return this._proxy.$notebookToData(handle, data);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user