Skip to content

The syntax highlighting doesn't work when creating a new file from a template

What does this MR do and why?

The MR introduces the syntax highlighting for the new files created from a template.

Screenshots or screen recordings

Before After
edit-before edit-after

How to set up and validate locally

  1. Go to a repository
  2. Add a new file
  3. After redirection to the edit page, apply any .gitlab-ci.yml template
  4. Watch the file name is changed to .gitlab-ci.yml
  5. The syntax highlighting should be updated and match the syntax highlighting of .yml files

MR acceptance checklist

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

Related to #342486 (closed)

Edited by Denys Mishunov

Merge request reports