Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUGGESTION] Bring back Analyze Solution #6147

Open
Tracked by #5951
arunchndr opened this issue Aug 16, 2023 · 5 comments
Open
Tracked by #5951

[SUGGESTION] Bring back Analyze Solution #6147

arunchndr opened this issue Aug 16, 2023 · 5 comments

Comments

@arunchndr
Copy link
Member

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
Copy link
Contributor

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

  • Add a new solution explorer command on project and solution nodes to trigger code analysis in background
  • This may need some work at the Roslyn/LSP API layer to allow querying diagnostics for a specific project/solution

@reflectronic
Copy link

reflectronic commented Aug 23, 2023

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
Copy link

omlnaut commented Aug 24, 2023

@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
Copy link

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

@peterthorpe81
Copy link

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

This continuously runs the analyzer in the background which is incredibly resource intensive.

In a blazor project its unusable, the error count constantly changes, I suspect due to source generated files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants