Load legacy blob viewer for dependency file types
What does this MR do and why?
We need to ensure dependencies files are linked to their respective package managers when the highlight_js
feature flag is enabled.
This MR adds a mechanism to fall back to the legacy (backend) syntax highlighter for dependency files instead of using Highlight.js.
Related to #358792 (closed)
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Enable the
highlight_js
feature flag - Open a dependency source file from the repository file browser
- The dependencies should be linked to their respective package managers.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.