C# Doctor: Report error and warning counts separately in the status bar

Open Beginner friendly
#3,561 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
devtools

Research direction

Start by locating the C# Doctor status-bar reporting path and the severity data used for its results. Verify with a result set containing two errors and two warnings; done when the status bar shows 2 errors and 2 warnings rather than 4 errors.

Written by the indexing model from the issue text.

Description

Description

C# Doctor currently reports all detected problems as errors in the bottom status bar. When the results contain different severities, the aggregate counts should preserve those severities instead of classifying every problem as an error.

For example, when C# Doctor finds two errors and two warnings, the status bar currently reports four errors. It should report two errors and two warnings, consistent with VS Code's standard Problems indicators.

Expected behavior

  • Error results contribute to the error count.
  • Warning results contribute to the warning count.
  • A result set containing two errors and two warnings displays 2 errors and 2 warnings in the bottom status bar.

Actual behavior

The same result set displays 4 errors and no warnings.

Screenshots

Current behavior: C# Doctor reports all four findings as errors in the status bar.

C# Doctor status bar showing four errors

Reference: VS Code reports error and warning counts separately.

VS Code Problems indicators showing separate error and warning counts

Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-dotnettools

All issues in microsoft/vscode-dotnettools

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.