[go: up one dir, main page]

Skip to content

Refactor lineHighlighter

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

From what I see currently we initialise lineHighlighter multiple times in many different places(search for new LineHighligter(). As a result in most of blob pages it is called multiple times (2-3). Plus sometimes we have to additionally call lineHighligter.highlightHash(hash) because when LineHighligter is initialised the line from the hash is still not rendered on the page. It would be nice to revisit all the initialisations to see if we can get rid of some.

Edited by 🤖 GitLab Bot 🤖