File tree Expand file tree Collapse file tree 2 files changed +7
-15
lines changed
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree 2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -67,20 +67,8 @@ export class SearchFindInput extends ContextScopedFindInput {
67
67
! this . filters . codeInput ||
68
68
! this . filters . codeOutput ;
69
69
70
- // for now, allow the default state to enable regex, since it would be strange for regex to suddenly
71
- // be disabled when a notebook is opened. However, since regex isn't supported for outputs, this should
72
- // be revisted.
73
- if ( this . regex ) {
74
- if ( ( this . filters . markupPreview || this . filters . codeOutput ) && this . _filterChecked && this . _visible ) {
75
- this . regex . disable ( ) ;
76
- this . regex . domNode . tabIndex = - 1 ;
77
- this . regex . domNode . classList . toggle ( 'disabled' , true ) ;
78
- } else {
79
- this . regex . enable ( ) ;
80
- this . regex . domNode . tabIndex = 0 ;
81
- this . regex . domNode . classList . toggle ( 'disabled' , false ) ;
82
- }
83
- }
70
+ // TODO: find a way to express that searching notebook output and markdown preview don't support regex.
71
+
84
72
this . _findFilter . applyStyles ( this . _filterChecked ) ;
85
73
}
86
74
}
Original file line number Diff line number Diff line change @@ -792,7 +792,11 @@ export class FileMatch extends Disposable implements IFileMatch {
792
792
webviewMatches : webviewMatches
793
793
} ;
794
794
} ) ;
795
- this . _findMatchDecorationModel . setAllFindMatchesDecorations ( cellFindMatch ) ;
795
+ try {
796
+ this . _findMatchDecorationModel . setAllFindMatchesDecorations ( cellFindMatch ) ;
797
+ } catch ( e ) {
798
+ // no op, might happen due to bugs related to cell output regex search
799
+ }
796
800
}
797
801
async updateMatchesForEditorWidget ( ) : Promise < void > {
798
802
if ( ! this . _notebookEditorWidget ) {
You can’t perform that action at this time.
0 commit comments