if you get the foundations of an extension setup, ...
# spicedb
j
if you get the foundations of an extension setup, we can just contribute it into that
n
took longer than expected, but here's the repo. Pretty much barebones for now but let's get it rolling: https://github.com/nhedger/vscode-spicedb
j
awesome
will take a look!
n
I'll create a bunch of issues to get the discussion started.
j
sounds good
n
I've started implementing syntax highlighting in https://github.com/nhedger/vscode-spicedb/pull/16. I've only added the comments for now, I'm hoping to add more during the weekend.
j
I'll see if I can translate over the one we have for Monaco
looks like Monaco one is sufficiently different that it is non-trivial
unless there is a way to specify a Monaco tokenizer directly
n
Yep, I had a look too, I'll just rewrite it from scratch, no biggy
Might take few days, but we'll get to it
j
let me know if we can help
I'd be surprised if there wasn't a way to use a Monaco grammar; it is a Monaco editor, afterall
if you do find a way to use it, ping me and I'll send along the one we have
n
VS Code uses TextMate grammar files exclusively for this contribution point I'm afraid, at least that's what the documentation says.
I'll get back to you if I find anything
j
yeah, looks like the "Monarch" format is only for the browser-based editor