@@ -1009,10 +1009,10 @@ export class NotebookDocumentSyncFeature implements DynamicFeature<proto.Noteboo
10091009 private readonly client : FeatureClient < NotebookDocumentMiddleware , $NotebookDocumentOptions > ;
10101010 private readonly registrations : Map < string , NotebookDocumentSyncFeatureProvider > ;
10111011 private dedicatedChannel : vscode . DocumentSelector | undefined ;
1012- private readonly _onChangeNotificationSent : vscode . EventEmitter < VNotebookDocumentChangeEvent > ;
1013- private readonly _onOpenNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
1014- private readonly _onCloseNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
1015- private readonly _onSaveNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
1012+ private _onChangeNotificationSent : vscode . EventEmitter < VNotebookDocumentChangeEvent > ;
1013+ private _onOpenNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
1014+ private _onCloseNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
1015+ private _onSaveNotificationSent : vscode . EventEmitter < vscode . NotebookDocument > ;
10161016
10171017 constructor ( client : FeatureClient < NotebookDocumentMiddleware , $NotebookDocumentOptions > ) {
10181018 this . client = client ;
@@ -1156,6 +1156,14 @@ export class NotebookDocumentSyncFeature implements DynamicFeature<proto.Noteboo
11561156 provider . dispose ( ) ;
11571157 }
11581158 this . registrations . clear ( ) ;
1159+ this . _onChangeNotificationSent . dispose ( ) ;
1160+ this . _onChangeNotificationSent = new vscode . EventEmitter < VNotebookDocumentChangeEvent > ( ) ;
1161+ this . _onOpenNotificationSent . dispose ( ) ;
1162+ this . _onOpenNotificationSent = new vscode . EventEmitter < vscode . NotebookDocument > ( ) ;
1163+ this . _onCloseNotificationSent . dispose ( ) ;
1164+ this . _onCloseNotificationSent = new vscode . EventEmitter < vscode . NotebookDocument > ( ) ;
1165+ this . _onSaveNotificationSent . dispose ( ) ;
1166+ this . _onSaveNotificationSent = new vscode . EventEmitter < vscode . NotebookDocument > ( ) ;
11591167 }
11601168
11611169 public handles ( textDocument : vscode . TextDocument ) : boolean {
0 commit comments