Great idea! I’ve noticed that issue. Thanks very much for making this as I’m a huge VSCode fan.
Might want to be careful with nomenclature though? A Theme Component is not a “Plugin” as such. That distinction is important because javascript highlighting works pretty well already with javascript Plugin files. And indeed it works fine in a Theme Component if residing in the javascripts folder.
I’ll have a go at using this and report any issues! Cheers!
Yes. It’s confusing, because the script tag is marked as type text/discourse-plugin not text/discourse-theme-component. And the API is called PluginAPI . I’ll think about it.
Regarding regular plugin js highlighting, it’s just javascript, not javascript in .html so it works out of the box.