Feature: When comments are collapsed show comment Icon
Installed product versions
- Visual Studio: 2019, 16.7
- This extension: 1.9
Description
When comments are collapsed show comment Icon like in this extension.
Expected behavior
When comments are collapsed show comment Icon.
Is it not possible to use both extensions?
I have observed VS slowness when installed that extension. Also found same comments about that extension. Looks like it is not actively maintained.
What's the goal here?
Is it that even when collapsed the comments can be distracting and so you'd like them hidden? Or is it something else?
Is it that even when collapsed the comments can be distracting and so you'd like them hidden?
Yes. With some sort of indicator indicating there are hidden comments.
Sounds like a great option to have
What may look like a very simple feature has lots of nuance and hidden complexity.
- How to handle comments of single vs multi-line length?
- What other functionality from that other extension should also be considered?
- How to avoid the performance issues experienced with the other extension? (It needs to do a lot of work to replace the existing/built-in comment experience and provide a custom comment editing experience.)
I don't expect to get to this any time soon but will consider PRs. Although, if you end up recreating everything in the NoComment extension it might be easier to have that as a separate extension you publish yourself.
May be instead to show an icon, allow to change also the style of collapsed comment. I hate the box around a colapsed comment. And font became the default one.
Hi,
The extension OP mentioned is obsolete, and it's not available for VS2022.
Not necessarily we should copy their approach by displaying a specific icon. Instead, a reasonable compromise would be to print a dummy short "..." text. A new package option may be introduced, let's say ShortCollapseForm. Anyone who wants this feature can explicitly opt-in by enabling this setting.
I just found an old PR I created for the Mad's Tweakster extension. You can see the related issue and PR here. Sounds good enough?