mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
keep notebook serializer locally
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user