Syntax highlighting stopped working in VS Code

Syntax highlighting stopped working in VS Code for some reason. Used to work fine. Now it works in the editor window but does not work in the Cody Chat window.

1 Like

Hello @harumon

I was able to reproduce the issue with dart code.
If you don’t mind reporting it as an issue on GitHub the dev team will be aware of that here: New Issue · sourcegraph/cody (github.com)

Thank you and sorry for the inconvenience.

Ticket here > bug: Syntax highlighting stopped working in VS Code · Issue #5564 · sourcegraph/cody · GitHub

1 Like

Any ETA on a fix? It’s pretty much a deal breaker for using Cody.

@harumon I know what the problem is, Cody is using this library for
syntax highlighting

They recently switched from loading all of the grammers to only the common and “Dart” is not among the common options.

Since Cody is open source, I will see about adding a pull request today or tomorrow with a fix, however the ETA on when that is accepted, merged and released depends on the priorities of the Sourcegraph developers.

2 Likes

@harumon added the pull request with the fix for dart and a bunch of other languages

The ball is now in the court of the Sourcegraph devs, if you need it then give it a thumbs up.
The more people want it the more it probably has changes of getting checked quicker.

1 Like

Thanks so much! @ichim-david

1 Like

@harumon Cody now has syntax highlighting for Dart at least in the pre-release version. Update and let me know how it goes. Unfortunatelly it took quite a while until my pull request got accepted but I’m happy to report that it’s finally been merged and working for the pre-release version.

1 Like