Skip to content

Resolve "Web IDE: syntax highlighting after re-naming a file doesn't work"

Denys Mishunov requested to merge 66293-webide-renaming-syntax-higlighting into master

What does this MR do?

Resolves #31858 (closed).

References https://gitlab.com/gitlab-org/gitlab-ee/issues/31058

The MR is based upon https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/16539.

It re-enables syntax highlighting for entries after they are renamed.

Example of the renaming of the .editorconfig file that is a plain text by default:

Default view

Before After
rename to .editorconfig.md Screenshot_2019-09-13_at_12.11.16 Screenshot_2019-09-13_at_12.12.01
rename to .editorconfig.js Screenshot_2019-09-13_at_12.11.26 Screenshot_2019-09-13_at_12.12.10

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Edited by Denys Mishunov

Merge request reports