You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion: Automatically show the Problems panel if problems exist (and hide similarly) #10400
I often work with the Problems panel open, as listing the problems that way is a very good visual indication of what needs some work. However, when I don't have any current problems, it'd be nice if the Problems panel could automatically hide (giving some more screen real estate). Then, when problems come up, it could automatically show again.
A little bit of auto-sizing based on the current number of problems would also be nice, but is less important, in my opinion.
Reacted by Roman Sharin, Jens Fischer, Chris Adams, Angeart, Roman Khitin, Tom, Peter Fern, Joe Williamson, Wang Weixuan, Nicolas Cannasse and 57 more
Reacted by Sandeep Somavarapu, Johannes Rieken and Davide
We have an indicator in the status bar which lets you know when there are any errors or warnings in your code. Have you found this to be useful?
I'm reluctant to open the panel automatically when we already have an indicator in the status bar. Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.
From: Johannes Riekenmailto:[email protected]
Sent: 11/08/2016 10:14
To: Microsoft/vscodemailto:[email protected]
Cc: Steven Clarkemailto:[email protected]; Mentionmailto:[email protected]
Subject: Re: [Microsoft/vscode] Suggestion: Automatically show the Problems panel if problems exist (and hide similarly) (#10400)
I technically know the indicator exists, but I can't say I ever look at it. I must be fairly arrogant: I assume my code is correct until I'm shouted at. :-D I really do prefer a pretty obnoxious warning in this case.
Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.
I definitely wouldn't do it as the default behavior! It does seem like it could be a configuration option. Or, alternatively, perhaps it's best as a plugin. I haven't looked—is the API sufficient to enable this kind of behavior?
For reference, I was previously using Atom and Atom-Linter. You can see how their error pane can (optionally) hide and show itself in their screenshot (down at the bottom of the screen). They are also optionally showing errors inline there, though I always preferred the list at the bottom of the screen:
Reacted by Ivan Augusto, Robbie Howe, davyzhang, Ignatius Reza, Blake Cerecero, Simon Lieschke, Nick Waywood, Thomas Chafiol, Emil Valeev, Sylvain Pont and 5 more
I also do not like the panel showing / hiding automatically when there is an error created / removed while editing. This will be annoying.
I think currently we create squiggles to inform user that there is an error. You can hover on it to see what error is about. This is something which catches user eyes while editing. Is this not helping?
I don't find the red squiggles all that helpful. If I have a lint error, I'd like to know immediately and without further interaction the details of the lint error. This way, I can fix (or ignore) the problem without interruption to my flow.
While the red squiggles show that a lint error exists, the only way to find out what the error is is to:
Hover over the squiggle with the mouse.
Position the cursor in the proper place and use the "Show Hover" command.
Open the "Problems" pane to see a list of problems and find the current one.
(my current solution) Keep the "Problems" pane open and empty until I have a lint error, so I can immediately see the details of the error when I write it.
others?
I'm not that unhappy with the current approach in Code, but I really did like the workflow I had in Atom. :-)
Thanks again for all your work on Code. I've really, really been enjoying using it.
Reacted by Kai Yao, Peter Fern, Robbie Howe, poohitan, zak, Blake Cerecero and Simon Lieschke
I'm reluctant to open the panel automatically when we already have an indicator in the status bar. Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.
It should definitely live behind a bool, but I think providing the option does exactly what you're proposing - gives the developer control over behaviour. Requiring key-combos or (worse) mouse clicks to repeatedly toggle the panel is cumbersome. Huge bonus points if the auto-toggle sizes the panel to fit the current problem list count, to preserve screen real-estate and maximise information delivery (probably needs a (configurable?) maximum line count to avoid taking over the screen).
I think currently we create squiggles to inform user that there is an error. You can hover on it to see what error is about. This is something which catches user eyes while editing. Is this not helping?
I really miss this feature from vim/atom, it's something I wouldn't knock unless you've tried it, though obviously it won't be for everyone. The vscode 'problem squiggles' just don't really convey anything useful without using the mouse, and that's painful (both figuratively and literally for some).
An additional/alternative change might be to automatically display the inline problem popup when navigating/typing within the buffer using the keyboard. This wouldn't help for cross-file problems though, so if added I think it would need to be in addition to (optionally) popping the problems panel.
I also do not like the panel showing / hiding automatically when there is an error created / removed while editing. This will be annoying.
I agree - I probably wouldn't want this to happen for errors that are reported by diagnostics / while typing. What I do want it for is errors from compilation (running a task).
This is very important for compiler based languages: once the build task is finished, you should be able to directly get to the Problems panel (like Visual Studio is doing for C/C++ BTW) without having to click or use hotkey.
Maybe a simple way would be to add a showProblems : true to the task description that would automatically show the problems panel if the tasks has exit with a not 0 error code?
Reacted by Adam Byrd, Spitko, Niko Mikulicic and Trass3r
For this feature to be truly convenient and useful, some more configuration options are needed. Like, limit the problems view to the current file or even limit the problems view to the current line.
That way, we could quickly see the fresh problems without being distracted by the problems in other files (and sometimes out of our control or interest at the moment).
That's what I've been using in Atom, and it worked great there: the status bar shows the errors for the entire project, the panel shows errors only for the current file, and it is automatically shown and hidden when errors appear and are resolved.
I've opened a separate feature request for the entire overhaul of the problems view here #30038.
coming from Atom, I found this useful for flow errors, since you can change a type definition in one file and cause multiple flow errors in files not open, so you don't see any squiggly lines. Obviously, it would need to be an opt-in configuration or exposed by an extension, but still really useful for some workflows.
Jens Fischer (@Gama11) Ah, ok. I was googling my fingers of to come across an issues that seemed at least related, but ok, I'll continue searching. The output probably comes from intellisense, but I assumed that VSCode probably had a setting somewhere to control the panel as a whole, given that I can close it as a whole too, independently on which tab is currently open in there.
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
The problem I have is that the build output isn't as pretty as the problems pane and most annoyingly I can't link quickly to the location in the file. It's meant I've become sloppy at fixing warnings or had to scroll around a lot. For C++ for example, in previous projects I have had thousands of error messages resulting from one line. Looking at the first error you find I feel is critical to solving the problem quickly. I presume there is a setting for disabling the popping up of the output pane, but will have to google - if it stays where it is when I highlight it, that would probably be sufficient. Another option, more complicated but perhaps neater, might be to include build status along with problems and rename the tab. Can't find a screenshot right now, but Qt Creator always did this rather nicely, with a little loading bar, status, and cancel button, alongside errors as they arose. I could start fixing whilst it was still building.
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
Activity
stevencl commentedon Aug 11, 2016
Thanks for the suggestion.
We have an indicator in the status bar which lets you know when there are any errors or warnings in your code. Have you found this to be useful?
I'm reluctant to open the panel automatically when we already have an indicator in the status bar. Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.
From: Johannes Riekenmailto:[email protected]
Sent: 11/08/2016 10:14
To: Microsoft/vscodemailto:[email protected]
Cc: Steven Clarkemailto:[email protected]; Mentionmailto:[email protected]
Subject: Re: [Microsoft/vscode] Suggestion: Automatically show the Problems panel if problems exist (and hide similarly) (#10400)
Assigned #10400 to Steven Clarke (@stevencl).
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#10400 (comment)
dahjelle commentedon Aug 11, 2016
I technically know the indicator exists, but I can't say I ever look at it. I must be fairly arrogant: I assume my code is correct until I'm shouted at. :-D I really do prefer a pretty obnoxious warning in this case.
I definitely wouldn't do it as the default behavior! It does seem like it could be a configuration option. Or, alternatively, perhaps it's best as a plugin. I haven't looked—is the API sufficient to enable this kind of behavior?
For reference, I was previously using Atom and Atom-Linter. You can see how their error pane can (optionally) hide and show itself in their screenshot (down at the bottom of the screen). They are also optionally showing errors inline there, though I always preferred the list at the bottom of the screen:
sandy081 commentedon Aug 15, 2016
I also do not like the panel showing / hiding automatically when there is an error created / removed while editing. This will be annoying.
I think currently we create squiggles to inform user that there is an error. You can hover on it to see what error is about. This is something which catches user eyes while editing. Is this not helping?
dahjelle commentedon Aug 24, 2016
I don't find the red squiggles all that helpful. If I have a lint error, I'd like to know immediately and without further interaction the details of the lint error. This way, I can fix (or ignore) the problem without interruption to my flow.
While the red squiggles show that a lint error exists, the only way to find out what the error is is to:
I'm not that unhappy with the current approach in Code, but I really did like the workflow I had in Atom. :-)
Thanks again for all your work on Code. I've really, really been enjoying using it.
Stanzilla commentedon Mar 5, 2017
Would love to get this, can it be a setting?
pdf commentedon May 5, 2017
Steven Clarke (@stevencl) wrote:
It should definitely live behind a bool, but I think providing the option does exactly what you're proposing - gives the developer control over behaviour. Requiring key-combos or (worse) mouse clicks to repeatedly toggle the panel is cumbersome. Huge bonus points if the auto-toggle sizes the panel to fit the current problem list count, to preserve screen real-estate and maximise information delivery (probably needs a (configurable?) maximum line count to avoid taking over the screen).
Sandeep Somavarapu (@sandy081) wrote:
I really miss this feature from vim/atom, it's something I wouldn't knock unless you've tried it, though obviously it won't be for everyone. The vscode 'problem squiggles' just don't really convey anything useful without using the mouse, and that's painful (both figuratively and literally for some).
An additional/alternative change might be to automatically display the inline problem popup when navigating/typing within the buffer using the keyboard. This wouldn't help for cross-file problems though, so if added I think it would need to be in addition to (optionally) popping the problems panel.
Gama11 commentedon May 18, 2017
I agree - I probably wouldn't want this to happen for errors that are reported by diagnostics / while typing. What I do want it for is errors from compilation (running a task).
ncannasse commentedon Jun 23, 2017
This is very important for compiler based languages: once the build task is finished, you should be able to directly get to the Problems panel (like Visual Studio is doing for C/C++ BTW) without having to click or use hotkey.
Maybe a simple way would be to add a
showProblems : trueto the task description that would automatically show the problems panel if the tasks has exit with a not 0 error code?vvs commentedon Jul 3, 2017
For this feature to be truly convenient and useful, some more configuration options are needed. Like, limit the problems view to the current file or even limit the problems view to the current line.
That way, we could quickly see the fresh problems without being distracted by the problems in other files (and sometimes out of our control or interest at the moment).
That's what I've been using in Atom, and it worked great there: the status bar shows the errors for the entire project, the panel shows errors only for the current file, and it is automatically shown and hidden when errors appear and are resolved.
I've opened a separate feature request for the entire overhaul of the problems view here #30038.
jaredh159 commentedon Aug 26, 2018
coming from Atom, I found this useful for flow errors, since you can change a type definition in one file and cause multiple flow errors in files not open, so you don't see any squiggly lines. Obviously, it would need to be an opt-in configuration or exposed by an extension, but still really useful for some workflows.
10 remaining items
berliner commentedon Oct 31, 2019
Jens Fischer (@Gama11) Not sure what it's called exactly, but it sounded about right, see the screenshot
Gama11 commentedon Oct 31, 2019
That's the output panel. Could be some extension (PHP?) opening that, but definitely not related to this issue.
berliner commentedon Oct 31, 2019
Jens Fischer (@Gama11) Ah, ok. I was googling my fingers of to come across an issues that seemed at least related, but ok, I'll continue searching. The output probably comes from intellisense, but I assumed that VSCode probably had a setting somewhere to control the panel as a whole, given that I can close it as a whole too, independently on which tab is currently open in there.
vscodebot commentedon Jan 15, 2020
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
stellarpower commentedon Sep 5, 2021
The problem I have is that the build output isn't as pretty as the problems pane and most annoyingly I can't link quickly to the location in the file. It's meant I've become sloppy at fixing warnings or had to scroll around a lot. For C++ for example, in previous projects I have had thousands of error messages resulting from one line. Looking at the first error you find I feel is critical to solving the problem quickly. I presume there is a setting for disabling the popping up of the output pane, but will have to google - if it stays where it is when I highlight it, that would probably be sufficient. Another option, more complicated but perhaps neater, might be to include build status along with problems and rename the tab. Can't find a screenshot right now, but Qt Creator always did this rather nicely, with a little loading bar, status, and cancel button, alongside errors as they arose. I could start fixing whilst it was still building.
vscodenpa commentedon Dec 14, 2022
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!
dotpointer commentedon Dec 23, 2022
This is the second time this issue has been closed. It should be fixed and not closed in my opinion.
padcom commentedon Jul 5, 2023
How do I do the automatic showing of problems list? Is this implemented? Am I missing something?