-
-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Since version ~v2.2 there seems to be an issue for me that auto-collapse comments command (specifically /// <summary> block etc.) when a new document opened is inconsistent or does not work as expected.
Most often, it does not collapse these summary comments when file is opened. However, if I open file 1 with summary comments (does not collapse) then open file 2 with summary comments (does not collapse), but then go back to file 1 tab, the comments are then properly collapsed.
I have verified this behavior for a fresh install of Visual Studio 2022 Community Edition, with only CollapseComments extension installed.
Here are my extension settings:

I have checked out repo code at v2.1 built solution and installed vsix, and issue behavior is not present and works as expected.
However, when doing the same at v2.2, I experience the issue described.
Finally, if I checkout v2.2 at this commit 073bb98#diff-561e45e38b11646f02c87d508c3ffc78826e7bed7509acb9d284e4d15896713a
And modify src/MyRunningDocTableEvents.cs to restore RunAsync, it works as expected.