keep notebook serializer locally

This commit is contained in:
Johannes Rieken
2021-03-16 14:52:24 +01:00
parent 2de06d768b
commit 31283f32b2
5 changed files with 40 additions and 23 deletions

View File

@@ -509,7 +509,7 @@ export class ExtHostNotebookController implements ExtHostNotebookShape {
registerNotebookSerializer(extension: IExtensionDescription, viewType: string, serializer: NotebookSerializer, options: TransientOptions): vscode.Disposable {
const handle = this._handlePool++;
this._notebookSerializer.set(handle, serializer);
this._proxy.$registerNotebookSerializer(handle, viewType, options);
this._proxy.$registerNotebookSerializer(handle, { id: extension.identifier, location: extension.extensionLocation, description: extension.description }, viewType, options);
return toDisposable(() => {
this._proxy.$unregisterNotebookSerializer(handle);
});