Skip to content

Make problems/errors more visible (red icon in statusbar) #74886

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

Closed
joeytwiddle opened this issue Jun 5, 2019 · 7 comments
Closed

Make problems/errors more visible (red icon in statusbar) #74886

joeytwiddle opened this issue Jun 5, 2019 · 7 comments
Assignees
Labels
editor-error-widget error-list Problems view feature-request Request for new features or functionality

Comments

@joeytwiddle
Copy link

joeytwiddle commented Jun 5, 2019

The problem: Sometimes I have a compilation error in my app (TS code), but I am not aware of it because VSCode does not make it clear enough.

Currently VSCode displays errors in the following places:

  • The list in the Problems panel
  • A red highlight and a count on the file in the file explorer (and containing folders)
  • Wiggly underlines in the file itself
  • Error and warnings counts in the left of the sidebar (see image below)

But they all have limitations:

  • I don't have enough screen space to keep the problems panel open, so I only open it when I need it.
  • A change I make might break a different file which is out of view in the file explorer.
  • The wiggly lines don't help if I don't currently have that file open, or they are offscreen
  • Therefore I am only left with the counts in the status bar. These are always visible. But they are too small to notice the change from 0 to 1.

Here are some suggestions, any one of which could help. My preference is for the first one.

  1. Offer a different colour for the statusbar counts, if the count is non-zero.

    For example, I would use bright red for >0 errors, but a gentle indication for warnings.

    Before

    After (not a huge difference, but should stand out just enough)

    Related: Less intrusive problems' statusbar item #64636 wants to hide the statusbar icons when the counts are zero.

  2. Allow the list of problems to appear in the sidebar, below the Outline and Npm-scripts panes. (Even if closed, perhaps its title could display counts. and change colour.)

  3. Display some red text in the statusbar when there are outstanding problems, perhaps showing the first one. (This plugin has the right idea, but it only works for the current line!)

  4. Highlight tabs containing errors like we highlight files now. WebStorm does this. It might be nice, but I don't think it really solves the original problem, because these could still be out of view.

I am more concerned about errors than warnings, but other users may feel differently.

@miguelsolorio
Copy link
Contributor

I could see us potentially adding a way to theme the problems/warning icons + text when an item appears. @sandy081 maybe this could fit in #74921 as well.

@miguelsolorio miguelsolorio added feature-request Request for new features or functionality editor-error-widget error-list Problems view labels Jun 6, 2019
@sandy081
Copy link
Member

sandy081 commented Jun 7, 2019

Yeah this can be made a dup of #74921

/duplicate

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Jun 7, 2019
@vscodebot
Copy link

vscodebot bot commented Jun 7, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@miguelsolorio
Copy link
Contributor

Re-opening since the original duplicate only handled icons. A few thoughts on the original proposal:

Offer a different colour for the statusbar counts, if the count is non-zero.

We could offer this as an optional theme color token but our default themes would not get this as we use blue in our status bar and any other foreground color would make it unreadable.

Allow the list of problems to appear in the sidebar, below the Outline and Npm-scripts panes

This should already be possible in the next release (1.42) with #85164

Display some red text in the statusbar when there are outstanding problems

Coloured text is the same as the first ask, and showing problems for the current line is already possible via problems.showCurrentInStatus

Highlight tabs containing errors like we highlight files now

I don't think we'd be able to do this as we already use highlighted tabs for active tabs and that would not make it accessible (can't use color alone to define meaning)

@miguelsolorio miguelsolorio reopened this Feb 4, 2020
@microsoft microsoft unlocked this conversation Feb 4, 2020
@miguelsolorio miguelsolorio removed the *duplicate Issue identified as a duplicate of another issue(s) label Feb 4, 2020
@miguelsolorio miguelsolorio added this to the Backlog Candidates milestone Feb 4, 2020
@vscodebot
Copy link

vscodebot bot commented Feb 4, 2020

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodebot
Copy link

vscodebot bot commented Mar 25, 2020

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-error-widget error-list Problems view feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants
@joeytwiddle @sandy081 @miguelsolorio and others