Skip to content

Load legacy blob viewer for dependency file types

Jacques Erasmus requested to merge 358792-dependency-fallback into master

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
Screenshot_2022-04-25_at_12.04.30 Screenshot_2022-04-25_at_12.04.02

How to set up and validate locally

  1. Enable the highlight_js feature flag
  2. Open a dependency source file from the repository file browser
  3. 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.

Merge request reports

Loading