Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Provide binding to jump to next/previous error #2514

@psxpaul

Description

@psxpaul

Oni Version: 0.3.6
Neovim Version (Linux only): n/a
Operating System: MacOS 10.12

Issue:
When editing a file that is supported by a configured language server, I would like to be able to jump to the next/previous highlighted error. There doesn't appear to be any way to do this currently, unless I'm missing something.

Looking into the code, I see 3 ways of implementing this:

  • add all diagnostic errors to the Quickfix List, so they can be navigated with [q and ]q
  • add all diagnostic errors to the Location List, so they can be navigated with [l and ]l
  • add a new entry to browser/src/Services/GlobalCommand, so that custom bindings can be added by the user

The Quickfix and Location List approaches have the downside of potentially overwriting anything already in those lists. I know that workspace searches and find-all-references searches populate the Quickfix list, so that's probably not ideal for many users.

I'm also curious if there's a default binding we should set for this. JetBrains IDEs like WebStorm and IntelliJ use F2/Shift-F2 for these bindings, while VSCode and VisualStudio use F8/Shift-F8.

Expected behavior:
Press a key combo (e.g. ), and the cursor would jump to the next highlighted error.

Actual behavior:
No such binding is available or documented

Steps to reproduce:

  • Open a Typescript file
  • type in some gibberish
  • verify the nonsensical line is highlighted
  • jump to a different spot in the file
  • how to quickly jump back to error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions