Skip to content

Highlight YAML Dag source in the Code tab - #74633

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:highlight-yaml-dag-source
Oct 13, 2026
Merged

pierrejeambrun merged 1 commit into
apache:mainfrom
astronomer:highlight-yaml-dag-source

Conversation

@pierrejeambrun

@pierrejeambrun pierrejeambrun commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

The AIP-85 YAML importer (#74586) stores a YAML Dag's source with language yaml, but configureMonaco only registers the Python, TypeScript, Java and Go grammars, so YAML Dags showed up as unhighlighted plain text in the Code tab.

Registers Monaco's YAML grammar exactly like the other Dag-authoring languages (dynamic import of the grammar module, same conf/language runtime shape guard, ambient module declaration) and adds it to the grammar export-shape test.

Before
before

After
after


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Claude Opus 5.5)

Generated-by: Claude Code (Claude Opus 5.5) following the guidelines

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 13, 2026
The AIP-85 YAML importer (apache#74586) stores its Dag source with language
"yaml", but the Code tab's Monaco setup only registers the Python,
TypeScript, Java and Go grammars, so YAML Dags rendered as plain text.
Register Monaco's YAML grammar the same way as the others.
@pierrejeambrun

Copy link
Copy Markdown
Member Author

Unrelated CI failure. Merging.

@pierrejeambrun
pierrejeambrun merged commit f6f267d into apache:main Oct 13, 2026
157 of 170 checks passed
@pierrejeambrun
pierrejeambrun deleted the highlight-yaml-dag-source branch October 13, 2026 12:44
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

vatsrahul1001 pushed a commit that referenced this pull request Oct 18, 2026
The AIP-85 YAML importer (#74586) stores its Dag source with language
"yaml", but the Code tab's Monaco setup only registers the Python,
TypeScript, Java and Go grammars, so YAML Dags rendered as plain text.
Register Monaco's YAML grammar the same way as the others.
(cherry picked from commit f6f267d)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
The AIP-85 YAML importer (#74586) stores its Dag source with language
"yaml", but the Code tab's Monaco setup only registers the Python,
TypeScript, Java and Go grammars, so YAML Dags rendered as plain text.
Register Monaco's YAML grammar the same way as the others.
(cherry picked from commit f6f267d)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants