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

Code line highlighting in Prism JS doesn't always appear #777

Open
jongpie opened this issue Oct 10, 2024 · 0 comments
Open

Code line highlighting in Prism JS doesn't always appear #777

jongpie opened this issue Oct 10, 2024 · 0 comments
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Type: Bug Something isn't working

Comments

@jongpie
Copy link
Owner

jongpie commented Oct 10, 2024

For some reason, the line highlighting used for Apex code snippets in c/loggerCodeViewer (powered by Prism JS) does not always correctly show up.

  • For LogEntry__c records without an exception, only 1 instance of the component is shown to display origin details. In this case, the line highlighting seems to never really work

    image

  • For LogEntry__c records with an exception, 2 instances of the component are - one for the origin details, and one for the exception details. Typically, these records show the highlighting on both components, but even this is sometimes flaky

    image

My theory is that this is happening because of how/when the PrismJS static resource is loaded, but so far, I haven't been able to fix it.

@jongpie jongpie added Type: Bug Something isn't working Layer: Log Management Items related to the custom objects & Logger Console app labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: Log Management Items related to the custom objects & Logger Console app Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant