Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting not working for added files #403

Open
triforcely opened this issue Feb 25, 2021 · 0 comments
Open

Syntax highlighting not working for added files #403

triforcely opened this issue Feb 25, 2021 · 0 comments

Comments

@triforcely
Copy link

triforcely commented Feb 25, 2021

Chrome: 88.0.4324.190

The latest update with syntax highlighting is great and reviewing experience is much better. It works fine for "edited" and "deleted" files but there is no syntax highlighting for newly added files
image
Interestingly, when I change the view mode of a given file to "View unified" and back to "View side-by-side", syntax becomes highlighted.


After some additional testing, I noticed that when I refresh the PR page and stay on the tab it won't highlight the code, but if I refresh the page and switch to some other chrome tab, wait for bitbucket to "load in the background" and switch to its tab after it finishes loading, the code will get highlighted.

I think there might be some race condition, where the code is being run too early. My page usually takes around 13-15 seconds to fully load - I think because I'm in Europe and bitbucket servers are hosted in the US (basically all Atlassian services are like that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant