pierrejeambrun opened a new pull request, #74231: URL: https://github.com/apache/airflow/pull/74231
The Code tab already asks Monaco for whichever language the Dag's source reports (`DAGSourceResponse.language`, already set to `"python"`, `"typescript"` or `"java"` by the respective Dag importers). But Monaco's minimal entry point only ever registered Python's tokenizer, so a Dag authored in TypeScript or Java rendered as flat, unhighlighted text instead of real syntax coloring. Go is registered too, ahead of a Go Dag importer. - Before: entirely monochrome, no coloring at all. - After: proper keyword/string/comment coloring, same as Python already had. - placeholder: before screenshot - placeholder: after screenshot --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.7) Generated-by: Claude Code (Opus 4.7) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
