Skip to content

Commit 8b2d8bd

Browse files
choo121600Your friendly bot
authored andcommitted
[v3-2-test] Restore Monaco find widget in Dag Code view (apache#67391)
(cherry picked from commit e56da19) Co-authored-by: Yeonguk Choo <choo121600@gmail.com>
1 parent 9b1bd3d commit 8b2d8bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

airflow-core/src/airflow/ui/src/components/MonacoEditor/configureMonaco.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ type MonacoEnvironment = {
2525
let configurationPromise: Promise<void> | undefined;
2626

2727
const 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

0 commit comments

Comments
 (0)