@@ -180,7 +180,7 @@ export class NotebookFindInputFilterButton extends Disposable {
180
180
super ( ) ;
181
181
this . _toggleStyles = options . toggleStyles ;
182
182
183
- this . _filtersAction = new Action ( 'notebookFindFilterAction' , tooltip , 'notebook-filters ' + ThemeIcon . asClassName ( filterIcon ) ) ;
183
+ this . _filtersAction = this . _register ( new Action ( 'notebookFindFilterAction' , tooltip , 'notebook-filters ' + ThemeIcon . asClassName ( filterIcon ) ) ) ;
184
184
this . _filtersAction . checked = false ;
185
185
this . _filterButtonContainer = dom . $ ( '.find-filter-button' ) ;
186
186
this . _filterButtonContainer . classList . add ( 'monaco-custom-toggle' ) ;
@@ -347,12 +347,12 @@ export abstract class SimpleFindReplaceWidget extends Widget {
347
347
const findHistoryConfig = this . _configurationService . getValue < 'never' | 'workspace' > ( 'editor.find.history' ) ;
348
348
const replaceHistoryConfig = this . _configurationService . getValue < 'never' | 'workspace' > ( 'editor.find.replaceHistory' ) ;
349
349
350
- this . _filters = new NotebookFindFilters ( findFilters . markupSource , findFilters . markupPreview , findFilters . codeSource , findFilters . codeOutput , { findScopeType : NotebookFindScopeType . None } ) ;
350
+ this . _filters = this . _register ( new NotebookFindFilters ( findFilters . markupSource , findFilters . markupPreview , findFilters . codeSource , findFilters . codeOutput , { findScopeType : NotebookFindScopeType . None } ) ) ;
351
351
this . _state . change ( { filters : this . _filters } , false ) ;
352
352
353
- this . _filters . onDidChange ( ( ) => {
353
+ this . _register ( this . _filters . onDidChange ( ( ) => {
354
354
this . _state . change ( { filters : this . _filters } , false ) ;
355
- } ) ;
355
+ } ) ) ;
356
356
357
357
this . _domNode = document . createElement ( 'div' ) ;
358
358
this . _domNode . classList . add ( 'simple-fr-find-part-wrapper' ) ;
@@ -368,10 +368,10 @@ export abstract class SimpleFindReplaceWidget extends Widget {
368
368
} ) ) ;
369
369
370
370
this . _register ( this . _state . onFindReplaceStateChange ( ( e ) => this . _onStateChanged ( e ) ) ) ;
371
- this . _scopedContextKeyService = contextKeyService . createScoped ( this . _domNode ) ;
371
+ this . _scopedContextKeyService = this . _register ( contextKeyService . createScoped ( this . _domNode ) ) ;
372
372
373
373
const progressContainer = dom . $ ( '.find-replace-progress' ) ;
374
- this . _progressBar = new ProgressBar ( progressContainer , defaultProgressBarStyles ) ;
374
+ this . _progressBar = this . _register ( new ProgressBar ( progressContainer , defaultProgressBarStyles ) ) ;
375
375
this . _domNode . appendChild ( progressContainer ) ;
376
376
377
377
const isInteractiveWindow = contextKeyService . getContextKeyValue ( 'notebookType' ) === 'interactive' ;
@@ -489,7 +489,7 @@ export abstract class SimpleFindReplaceWidget extends Widget {
489
489
} ) ) ;
490
490
this . inSelectionToggle . domNode . style . display = 'inline' ;
491
491
492
- this . inSelectionToggle . onChange ( ( ) => {
492
+ this . _register ( this . inSelectionToggle . onChange ( ( ) => {
493
493
const checked = this . inSelectionToggle . checked ;
494
494
if ( checked ) {
495
495
// selection logic:
@@ -530,7 +530,7 @@ export abstract class SimpleFindReplaceWidget extends Widget {
530
530
this . clearCellSelectionDecorations ( ) ;
531
531
this . clearTextSelectionDecorations ( ) ;
532
532
}
533
- } ) ;
533
+ } ) ) ;
534
534
535
535
const closeBtn = this . _register ( new SimpleButton ( {
536
536
label : NLS_CLOSE_BTN_LABEL ,
0 commit comments