Auto doc comment generation and other formatOnType features broken
Environment data
`dotnet --info` output:
.NET SDK:
Version: 8.0.201
Commit: 4c2d78f037
Workload version: 8.0.200-manifests.3097af8b
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.201\
VS Code version: 1.89.1
C# Extension version: 2.31.19 and 2.32.14
Steps to reproduce
- Switch to
v2.31.19,2.32.14, or later andRestart Extensions - Type
///above any method, class, etc. - No further text appears
Expected behavior
Code snippets and other formatOnType behaviors work as they did in 2.30.28 (via Switch to Release Version).
Actual behavior
Code snippets and other formatOnType behavior, such as automatically inserted spaces and * characters for multiline comments or XML tags for documentation comments, are not functioning.
Additional context
I've changed no other settings or other extensions. The issue appears (that is, stops working) when switching to 2.31+ and disappears (that is, works again) when going back to 2.30.
If this is a new change (new setting, etc.) rather than a bug, I haven't been able to find any documentation on it.
Edit: Initially filed the report for preview, but I've re-tested with the latest release and it's still present. Updated to match.
Hi!
I experience the same issues using the same versions as @CynicalBusiness.
This is also occurring in C# Extension version: 2.31.19
Agreed it's broken in the latest stable release 2.31.19 from yesterday.
Friendly suggestion: remove the "in preview" bit from the issue's title so it gets more attention. If the team think it's only broken in preview then it may be ignored as a "WIP problem" despite it actually being a problem in production code.
Same here on 2.31.19
Looks like the version went stable and since others are seeing it appear on this version, including myself on v2.31.19, I updated the title.
I can only imagine there must be some special case which triggers/breaks this behavior if it has gone unnoticed thus far?
For anyone stumbling on this, a work-around for now is to downgrade the extension back to v2.30.28, such as using the caret next to the Uninstall button and selecting Install Another version...
Can confirm it's broken on v2.31.19 and downgrading to v2.30.28 "fixed" it.
Ditto, broken for us too. Downgrading to 2.30.28 fixed. Pls pls write more unit tests!
Should be fixed in an upcoming prerelease, will update here when its out.
This is published in the 2.34.10 prerelease (will go to the release channel next week).