mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-09-16 05:19:30 -05:00
## Problem Fixes #9080. The compiler output pane uses Monaco's default color decorators, so assembly constants such as `#308` and `#8` are shown with misleading color selector squares in Arm/AArch64 output. ## Root cause and solution Monaco enables `colorDecorators` by default. The read-only assembly output editor did not override that general-purpose editor setting. The compiler output configuration now disables color decorators for the `asm` editor only. ## Tests - `make check` - `npm run check-frontend-imports` - `npm run check-license-headers` - `npm run webpack` The focused frontend regression test verifies the exact editor options passed by `Compiler.createEditor()`. All checks passed; webpack retained only the repository's existing CSS-order and asset-size warnings. The change is limited to the compiler output pane and does not affect source editors or other Monaco panes.
Front-end unit tests
Tests here are super simple and use jsdom with a fake document to do quick checks on the front-end code.
For anything requiring a real browser, use the cypress tests in the cypress directory.