better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

Added support to all languages

Open edgardmessias opened this issue 4 years ago • 6 comments

How it works: Generate a map of language configuration map, base on all extensions

Abstract: Each language-configuration.json may 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

edgardmessias avatar Jan 12 '21 11:01 edgardmessias

#100 #121 #142 #158 #170 #172 #173 #179 #189 #192 #195 #198 #200 #203 #206 #208 #218 #225 #235 #244 #247 #250

edgardmessias avatar Jan 12 '21 12:01 edgardmessias

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!

aaron-bond avatar Apr 07 '21 16:04 aaron-bond

@edgardmessias Would you be interested in publishing your fork in the meantime?

texastoland avatar Aug 24 '21 09:08 texastoland

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.

aaron-bond avatar Nov 13 '21 17:11 aaron-bond

It looks like the Code team is about to release beta testing for extensions (https://github.com/microsoft/vscode/issues/15756#issuecomment-967006890)! Would you want to publish a beta VSIX in the meantime and announce it on Twitter?

texastoland avatar Nov 14 '21 05:11 texastoland

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?

texastoland avatar May 29 '23 03:05 texastoland