dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 670 forks source link

[SUGGESTION] Bring back Analyze Solution #6147

Open arkalyanms opened 1 year ago

arkalyanms commented 1 year ago

From vscode-dotnettools created by omlnaut: microsoft/vscode-dotnettools#358

Describe the feature you'd like

Currently, the problems tab only shows problems for files that were opened in the workspace. In the existing c# plugin, you could run Omnisharp: Analyze Current Project (or solution) to show all problems.

I need that feature back because it greatly simplifies fixing warnings in large projects

Alternatives considered

No response

Environment Information

No response

mavasani commented 1 year ago

From #5893

Is your feature request related to a problem? Please describe.

Equivalent of Run Code Analysis command in VS to manually execute code analysis on demand for a project/solution. See https://learn.microsoft.com/en-us/visualstudio/code-quality/how-to-run-code-analysis-manually-for-managed-code for details

Describe the solution you would like

reflectronic commented 1 year ago

Currently, the problems tab only shows problems for files that were opened in the workspace.

To be clear @omlnaut, this is an option that you can change: image

omlnaut commented 1 year ago

@reflectronic not quite. This option runs the analyzer on the whole solution in the background permanently. This is using a full cpu core for me, all the time. I'd prefer a one-time-use command to run the analysis when I actually need it

blushingpenguin commented 11 months ago

that doesn't work, it never shows any analysis issues