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

fix memory leak in syntax highlighting (causing gray webviews) #4459

Merged
merged 1 commit into from
Jun 5, 2024

Commits on Jun 5, 2024

  1. fix memory leak in syntax highlighting (causing gray webviews)

    rehype-highlight, the syntax highlighting lib we use, has a memory leak bug (remarkjs/react-markdown#791). Downgrading to rehype-highlight@^6.0.0 as recommended fixes the memory leak.
    
    This was causing an issue where the Cody chat webview turned gray due to an out-of-memory situation.
    
    - Fixes #4431
    - Fixes https://linear.app/sourcegraph/issue/CODY-2062/gray-screen-in-chat
    - Fixes https://linear.app/sourcegraph/issue/CODY-2017/reports-of-chat-ui-lagginess-on-long-messages
    - Fixes https://community.sourcegraph.com/t/a-condensed-report-on-key-issues-affecting-cody/439#h-8-performance-issues-with-vscode-extension-18
    sqs committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    c9ea58d View commit details
    Browse the repository at this point in the history