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 and umpox committed Aug 23, 2024
1 parent 01e6610 commit e7b65f2
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 @@ -1416,7 +1416,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 e7b65f2

Please sign in to comment.