File tree Expand file tree Collapse file tree
airflow-core/src/airflow/ui/src/components/MonacoEditor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ type MonacoEnvironment = {
2525let configurationPromise : Promise < void > | undefined ;
2626
2727const loadMonacoModules = async ( ) => {
28- // `editor.api` is API-only — also load the folding contribution so `editor.foldAll` /
29- // `editor.unfoldAll` actions and the fold-gutter UI are actually registered, and the
30- // codicon styles so the gutter glyph (the `>` arrow) renders instead of an empty box.
31- // The CDN bundle used to pull these in transitively; the local ESM `editor.api` does not.
28+ // `editor.api` is API-only — the contribs/styles below must be side-effect imported
29+ // to register their actions and render their glyphs. The CDN bundle pulled these in
30+ // transitively; the local ESM build does not.
3231 const monacoApi = Promise . all ( [
3332 import ( "monaco-editor/esm/vs/editor/editor.api" ) ,
3433 import ( "monaco-editor/esm/vs/editor/contrib/folding/browser/folding" ) ,
34+ import ( "monaco-editor/esm/vs/editor/contrib/find/browser/findController" ) ,
3535 import ( "monaco-editor/esm/vs/base/browser/ui/codicons/codiconStyles" ) ,
3636 ] ) . then ( ( [ api ] ) => api ) ;
3737
You can’t perform that action at this time.
0 commit comments