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

Show current error in status bar #20183

Closed
dbaeumer opened this issue Feb 8, 2017 · 18 comments · Fixed by #84609
Closed

Show current error in status bar #20183

dbaeumer opened this issue Feb 8, 2017 · 18 comments · Fixed by #84609
Assignees
Labels
error-list Problems view feature-request Request for new features or functionality on-testplan ux User experience issues
Milestone

Comments

@dbaeumer
Copy link
Member

dbaeumer commented Feb 8, 2017

  • VSCode Version: 1.9.0
  • OS Version: all

From: microsoft/vscode-eslint#199

The eslint plugin on vim have a nice feature that if your cursor is on the line of a eslint error it shows the error on status bar, this plugin can do this too?

@dbaeumer dbaeumer added the feature-request Request for new features or functionality label Feb 8, 2017
@sandy081 sandy081 added the error-list Problems view label Feb 8, 2017
@sandy081 sandy081 added this to the Backlog milestone Feb 8, 2017
@sublimeye
Copy link

This feature should support any type of linter/language, not only eslint. Instead of hovering the mouse cursor over highlighted text a user should be able to see the error when placing the caret on the highlighted part.

@dandv
Copy link

dandv commented Oct 10, 2018

WebStorm does this, and it's a big timesave for keyboard users. No need to mouse over the error - just see it in the status bar.

@mslawins
Copy link

This would be great feature. Love this when I'm using Vim.

@sandy081
Copy link
Member

sandy081 commented Dec 6, 2018

@dbaeumer Can the extension can do it already?

@usernamehw
Copy link
Contributor

usernamehw commented Dec 6, 2018

https://marketplace.visualstudio.com/items?itemName=JoeBerria.statusbarerror#overview

52386481-5b32e080-2a97-11e9-87d5-ed2e55cb7281

@dbaeumer
Copy link
Member Author

dbaeumer commented Dec 7, 2018

@sandy081 I don't think that extension should start doing this. If we think this is a useful feature then this should be in the core to ensure it works as expected and can be turned off.

@sandy081
Copy link
Member

sandy081 commented Dec 7, 2018

But why in status bar instead in editor?

@dbaeumer
Copy link
Member Author

dbaeumer commented Dec 7, 2018

I think this is because of other editors / IDEs showing it there.

@sandy081
Copy link
Member

sandy081 commented Dec 7, 2018

What I am trying to understand is why does users want to see in the status bar and what is it trying to achieve in addition to other editors doing the same.

@ryansully
Copy link

Because developers who have primarily keyboard driven workflows, such as Vim shortcuts, want to be able to see errors without having to move their hand to use the mouse to hover over them in the editor.

@sandy081
Copy link
Member

sandy081 commented Dec 7, 2018

But we also show inline representation of an error when you type f8 key. So if you want to see the error at the given position does the inline view helps? This can show the error completely (including multiple lines and related information) but the status bar has limitations in space right?

image

@ryansully
Copy link

That still requires an extra action/keypress to view the error. Having used Vim and knowing other Vim users, it is valuable to be able to see errors in the status area while motioning through code.

@sandy081
Copy link
Member

sandy081 commented Dec 7, 2018

What I am saying is that status bar has space issues and as a platform it might not be nice to show only partial information and it also flood status bar. If this is an experience of VIM, why not add this functionality to our VIM extension?

@cdloh
Copy link

cdloh commented Dec 7, 2018

But it's not just a VIM thing. All modern IDEs have this feature. Sublime Text does.

@sandy081
Copy link
Member

sandy081 commented Dec 7, 2018

I see. I am just thinking to have a nicer way to fulfil this requirement given that there is a space constraint in status bar and we have multiple UIs for errors (Inline, Hover & Panel).

I have come across a requirement for problems panel to show the problems for the given file or for given position only - #30038

Just wanna check either status bar or problems view is the right thing to have this feature. I kinda incline towards problems view as it is better in terms of space and showing information.

What do you think?

@cagmz
Copy link

cagmz commented Dec 7, 2018

@usernamehw thanks! Works like a charm; very useful when using vscodevim.

@sandy081
Copy link
Member

sandy081 commented Nov 8, 2019

This will be supported behind the setting problems.showCurrentInStatus. Set it to true to enable.

Kapture 2019-11-08 at 13 44 37

@ultraGentle
Copy link
Contributor

Given the discussion of "status bar real-estate" above, I just thought I'd point out the extension "Error Lens," which displays all errors and warnings inline with the code:

Screen Shot 2019-11-14 at 2 46 22 PM

Just another approach, and, in my experience, incredibly useful since you don't need to move your gaze.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
error-list Problems view feature-request Request for new features or functionality on-testplan ux User experience issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants