Stream: show and tell

Topic: VS Code Extension


view this post on Zulip Richard Feldman (Aug 20 2022 at 19:58):

FYI, @Benjamin Thomas made a VS Code Extension adding support for Roc syntax highlighting: https://github.com/roc-lang/roc/issues/3854

view this post on Zulip jan kili (Aug 20 2022 at 21:04):

Whoa! I didn't expect progress on a compeDitor for a few months more, but I'm glad for it. Is use of this extension encouraged, or will it simply exist?

view this post on Zulip Richard Feldman (Aug 20 2022 at 22:42):

up to you! Obviously the official editor isn't far enough along to be used as a daily driver yet, so if you're already using vs code anyway, might as well get nice syntax highlighting!

view this post on Zulip Richard Feldman (Aug 20 2022 at 22:43):

like I mentioned in the issue, I don't want the official roc-lang organization to adopt any tooling for other editors, because I want to keep focused on the official editor and don't want to send any mixed messages about that :big_smile:

view this post on Zulip jan kili (Aug 20 2022 at 23:55):

:100: I agree

view this post on Zulip jan kili (Aug 20 2022 at 23:56):

Last night I considered learning how vim syntax highlighting configurations work to write one for Roc but I either restrained myself or got lazy - hard to say which

view this post on Zulip Benjamin Thomas (Sep 03 2022 at 22:10):

image.png

Hello team. If you need that sweet little icon urgently, make sure you refresh your vscode extension.

Now I think I'm ready to learn a bit of Roc ^^

view this post on Zulip jan kili (Sep 03 2022 at 23:18):

The icon is definitely motivating :)

view this post on Zulip Ivan Demchenko (Jun 20 2023 at 19:03):

Hello everyone,
Just a small announcement: there's yet another VSCode extension out there! My main motivation for creating it was to have a better understanding of LSP (although currently, it only offers syntax highlighting), not to compete with the Roc editor. Roc looks very promising and I want it to succeed. So the more people use it, the sooner it reaches critical mass, the sooner it becomes mainstream!

view this post on Zulip Luke Boswell (Jun 20 2023 at 20:19):

Cool, @Ivan Demchenko looking good. If it may help you here is the rust crate that we are currently using for syntax highlighting on the tutorial, docs etc. It currently uses the compiler parser to tokenise the syntax.

view this post on Zulip Ivan Demchenko (Jun 21 2023 at 05:43):

Thank you @Luke Boswell for your kind words! I'll check the crate out!

view this post on Zulip Hannes (Jun 21 2023 at 12:25):

@Ivan Demchenko Thanks for the useful extension, are you open to PRs? I've been using your extension today, and I've noticed some features that could be added. I'm thinking specifically of the ability to highlight an expression and type ( to wrap the expression in brackets.

view this post on Zulip Ivan Demchenko (Jun 21 2023 at 13:44):

@Hannes Oh, absolutely! Thank you very much!

view this post on Zulip Hannes (Jun 27 2023 at 01:34):

@Ivan Demchenko Submitted a PR to fix a bug with the language configuration, that should fix the shortcut to comment/uncomment and automatically close brackets. :thumbs_up: https://github.com/raqystyle/roc-vscode-unofficial/pull/1

view this post on Zulip Ivan Demchenko (Jun 27 2023 at 07:12):

@Hannes Thank you so much! I merged it and published a new patch version.

Update: and it's live :) Kudos @Hannes for the contribution!

view this post on Zulip Ivan Demchenko (Jun 27 2023 at 07:19):

@Hannes you're on fire! :big_smile:

view this post on Zulip Hannes (Jun 27 2023 at 07:27):

I just noticed a few things while I was fixing the language config bug that could be improved, it felt wrong to just have the fixes on my local version and not upstream them :sweat_smile:

view this post on Zulip Ivan Demchenko (Jun 27 2023 at 08:02):

@Hannes v0.0.5 is on its way

view this post on Zulip Ivan Demchenko (Jul 13 2023 at 07:02):

Sorry for the delay, I went on the summer holiday break.
The new version 0.0.7 has been released. Kudos to @Hannes for his contributions!

view this post on Zulip Richard Feldman (Jul 13 2023 at 15:35):

thanks @Ivan Demchenko, and welcome back! I've been using the extension all the time! :smiley:

view this post on Zulip Ivan Demchenko (Jul 13 2023 at 20:48):

@Richard Feldman, thank you for your kind words! And for Roc too :)

view this post on Zulip Richard Feldman (Jul 13 2023 at 21:18):

Roc is as cool as it is because of the people contributing to it, like you! So thank you! :hearts:


Last updated: Jul 06 2025 at 12:14 UTC