Highlight ONE file type with the highlight worker behind a FF (e.g. JSON)
### Description As a follow-up from https://gitlab.com/gitlab-org/gitlab/-/issues/366531, this issue suggests that we use our [highlight worker](https://gitlab.com/gitlab-org/gitlab/-/tree/master/app/assets/javascripts/vue_shared/components/source_viewer/workers) and [new source viewer component](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/111309) to highlight content. This is about highlighting ONE file type (e.g. JSON) with the worker behind a FF. ### Result/Outcome As a result of this, all content would be highlighted upfront as opposed to highlighting in chunks which should contribute to more accurate highlighting in certain scenarios (read the description of https://gitlab.com/gitlab-org/gitlab/-/issues/366531 to find out about the technical downsides of highlighting in chunks). ### Things to keep in mind - Ensure bundle size is not negatively affected too much. - Ensure frontend performance metrics remain stable/improve. - Ensure syntax highlighting and features such as code intelligence, line highlighting, and BiDi char highlighting still work as expected. - Consider introducing these changes behind a feature flag (enable for one project in production to monitor performance impact). ### Availability Exploratory and regression testing recommended.
issue