vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Auto doc comment generation and other formatOnType features broken

Open CynicalBusiness opened this issue 2 years ago • 9 comments

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

  1. Switch to v2.31.19, 2.32.14, or later and Restart Extensions
  2. Type /// above any method, class, etc.
  3. 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.

CynicalBusiness avatar May 29 '24 12:05 CynicalBusiness

Hi!

I experience the same issues using the same versions as @CynicalBusiness.

ChristoWolf avatar May 29 '24 12:05 ChristoWolf

This is also occurring in C# Extension version: 2.31.19

chickenSandwich avatar May 30 '24 08:05 chickenSandwich

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.

lonix1 avatar May 31 '24 00:05 lonix1

Same here on 2.31.19

artemkoloskov avatar May 31 '24 05:05 artemkoloskov

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...

CynicalBusiness avatar Jun 01 '24 20:06 CynicalBusiness

Can confirm it's broken on v2.31.19 and downgrading to v2.30.28 "fixed" it.

badeend avatar Jun 02 '24 09:06 badeend

Ditto, broken for us too. Downgrading to 2.30.28 fixed. Pls pls write more unit tests!

CharlieHess avatar Jun 05 '24 18:06 CharlieHess

Should be fixed in an upcoming prerelease, will update here when its out.

dibarbet avatar Jun 06 '24 06:06 dibarbet

This is published in the 2.34.10 prerelease (will go to the release channel next week).

dibarbet avatar Jun 12 '24 19:06 dibarbet