File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/code-editor/src/CodeEditor/hooks Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ const importLangRust = () => import('@codemirror/lang-rust');
54
54
export const useModuleLoaders = ( {
55
55
enableClickableUrls,
56
56
enableCodeFolding,
57
+ enableSearchPanel,
57
58
forceParsing,
58
59
indentUnit,
59
60
tooltips,
@@ -70,9 +71,12 @@ export const useModuleLoaders = ({
70
71
'@codemirror/view' : importCodeMirrorView ,
71
72
'@codemirror/state' : importCodeMirrorState ,
72
73
'@codemirror/commands' : importCodeMirrorCommands ,
73
- '@codemirror/search' : importCodeMirrorSearch ,
74
74
} ;
75
75
76
+ if ( enableSearchPanel ) {
77
+ neededLoaders [ '@codemirror/search' ] = importCodeMirrorSearch ;
78
+ }
79
+
76
80
if ( enableClickableUrls ) {
77
81
neededLoaders [ '@uiw/codemirror-extensions-hyper-link' ] = importHyperLink ;
78
82
}
You can’t perform that action at this time.
0 commit comments