Added support to all languages - #302
Conversation
|
This is such a neat idea - I've been considering something like this for a while, but didn't know the language config was a thing (is it recent?). I have to get my dev environment set up again (it's been offline since WFH started), but once I do this is the first thing I'm going to look at. Thanks! |
|
@edgardmessias Would you be interested in publishing your fork in the meantime? |
|
I totally forgot to reply here. @edgardmessias I have a working branch now with these changes (mostly ported your ideas, but I hope you understand I needed to write it myself so I could support it in the future). Many many thanks for your direction, it was invaluable. https://github.com/aaron-bond/better-comments/tree/all-languages At the minute the main thing I have to change is removing the activation events, but otherwise this is in test. I'm just looking to make sure I don't break anything for anyone when I release. |
|
It looks like the Code team is about to release beta testing for extensions (microsoft/vscode#15756 (comment))! Would you want to publish a beta VSIX in the meantime and announce it on Twitter? |
|
I've been thinking about this for quit a while. It isn't performant, it updates with noticeable lag, and it doesn't respect the user's theme in any way. Language injection simlar to JSDoc syntax highlighting would solve all these. I'll give it a shot in the next month and release it as a separate project unless @aaron-bond is still around? |
How it works: Generate a map of language configuration map, base on all extensions
Abstract:
Each
language-configuration.jsonmay contains:comments.blockComment- The begin and end token used to mark a block comment. Used by the 'Toggle Block Comment' command.comments.lineComment- The begin token used to mark a line comment. Used by the 'Add Line.You can read more here: https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributeslanguages