Skip to content

Commit

Permalink
Revert: rehype-highlight bump (#5313)
Browse files Browse the repository at this point in the history
There has been a (long ongoing) issue with `rehype-highlight` /
`highight-js` causing OOM issues on `>v6.0.0`. This reverts a recent
version bump that might have [re-introduced this
issue](#4459) in Cody chat
causing grey-screens and crashes.

> Important: I wasn't able to re-produce the issue myself for some
reason. So this is a bit of a "shot-in-the-dark" fix. Hopefully we can
have those who reported the issue validate if it actually worked.
Lowering the version shouldn't hurt any other changes though as it was
merely done to reduce the bundle size somewhat.

## Test plan
CI
  • Loading branch information
RXminuS authored Aug 23, 2024
1 parent 64ef9ff commit 0a5b683
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 20 deletions.
136 changes: 117 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a
### Added

### Fixed
- Revert: A recent version bump of a dependency was potentially causing some Out-of-Memory issues resultling in a grey screen. The `rehype-highlight` version has been reverted. [pull/5315](https://github.com/sourcegraph/cody/pull/5315)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@
"parse-git-diff": "^0.0.14",
"proxy-agent": "^6.4.0",
"react-markdown": "^9.0.1",
"rehype-highlight": "^7.0.0",
"rehype-highlight": "^6.0.0",
"rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.0",
"semver": "^7.5.4",
Expand Down

0 comments on commit 0a5b683

Please sign in to comment.