Skip to content

Blob refactor: Fix sourcegraph integration

Jacques Erasmus requested to merge add-sourcegraph-decorator into master

What does this MR do and why?

This ensures that we load Sourcegraph when navigating from the repository or tree controller.

Changes in this MR is part of bigger efforts to refactor the blob viewers and Highlight source code syntax on the frontend using HighlightJS.

Screenshots or screen recordings

Screen_Recording_2022-01-13_at_13.42.36.2022-01-13_13_46_21

How to set up and validate locally

Note, to verify locally you'll need to setup Sourcegraph (step 3 below)

  1. Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
  1. Enable the Highlight.js feature flag
Feature.enable(:highlight_js)
  1. Follow the steps in docs for setting up Sourcegraph

  2. Open a source file

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jacques Erasmus

Merge request reports

Loading