Skip to content

Show current error in status bar #20183

Closed

Description

@dbaeumer
  • 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?

Activity

  1. sublimeye commented on Jan 6, 2018

    @sublimeye

    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.

  2. dandv commented on Oct 10, 2018

    @dandv

    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.

  3. mslawins commented on Nov 19, 2018

    @mslawins

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

  4. sandy081 commented on Dec 6, 2018

    @sandy081
    Member

    Dirk Bäumer (@dbaeumer) Can the extension can do it already?

  5. usernamehw commented on Dec 6, 2018

    @usernamehw
    Contributor
  6. dbaeumer commented on Dec 7, 2018

    @dbaeumer
    MemberAuthor

    Sandeep Somavarapu (@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.

  7. sandy081 commented on Dec 7, 2018

    @sandy081
    Member

    But why in status bar instead in editor?

  8. dbaeumer commented on Dec 7, 2018

    @dbaeumer
    MemberAuthor

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

  9. sandy081 commented on Dec 7, 2018

    @sandy081
    Member

    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.

  10. ryansully commented on Dec 7, 2018

    @ryansully

    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.

  11. sandy081 commented on Dec 7, 2018

    @sandy081
    Member

    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

  12. 2 remaining items

  13. cdloh commented on Dec 7, 2018

    @cdloh

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

  14. sandy081 commented on Dec 7, 2018

    @sandy081
    Member

    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?

  15. cagmz commented on Dec 7, 2018

    @cagmz

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

  16. sandy081 commented on Nov 8, 2019

    @sandy081
    Member

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

    Kapture 2019-11-08 at 13 44 37

  17. added a commit that references this issue on Nov 8, 2019
  18. added a commit that references this issue on Nov 12, 2019
  19. ultraGentle commented on Nov 22, 2019

    @ultraGentle
    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.

  20. locked and limited conversation to collaborators on Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

error-listProblems viewfeature-requestRequest for new features or functionalityon-testplanuxUser experience issues

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions