You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add setting for enabling/disabling cody chat syntax highlighting (#8185)
## Changes
This PR allows users to disable chat code highlighting using
`cody.chatCodeSyntaxHighlightingEnabled` user setting.
This may be useful e.g. for testing purposes, as we recently discovered
that in some environments syntax highlighting seems to be causing a
memory leak when multiple code snippets are streamed.
## Test plan
1. Run `pnpm dev:standalone`
2. Open http://localhost:5777/ and ask cody to give you a short java
code snippet.
3. Make sure code **is highlighted**
4. In your user settings at
https://sourcegraph.sourcegraph.com/users/{username}/settings add the
following setting:
```
{
"cody.chatCodeSyntaxHighlightingEnabled": false
}
```
5. Refresh http://localhost:5777/ and ask cody to give you a short java
code snippet again.
6. Make sure code **is NOT highlighted**
0 commit comments