microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

[BUG] Quick Fix not showing up #1610

Open aaronpowell opened 1 week ago

aaronpowell commented 1 week ago

Describe the Issue

I'm using the Public API Analyzer in https://github.com/CommunityToolkit/Aspire but since adding .NET 9 to our devcontainer the analyzer quick fix is no longer showing up (but it was prior to the .NET 9 release/adding .NET 9 to the devcontainer).

It's detected:

Image

But not an option:

Image

The feature works in VS though.

Steps To Reproduce

  1. Clone https://github.com/CommunityToolkit/Aspire and open in the devcontainer
  2. Add a new public method to any of the classes in projects under the src folder
  3. Wait for the analyzer to run
  4. Activate the quick fix menu

Expected Behavior

I'd expect that the Analyzer code fix option to be presented and execute, as it did prior to updating.

Environment Information

Version: 1.96.0-insider (system setup)
Commit: db865c38f0f5fee1de1653b75dd66ec802d24a28
Date: 2024-11-13T17:56:05.737Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26120
svick commented 3 hours ago

I suspect this is a duplicate of https://github.com/dotnet/vscode-csharp/issues/7802. If it is, it should be fixed in the current prerelease version of the C# extension.