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

Idea: Diagnostic actions #131

Open
mrcjkb opened this issue Feb 3, 2023 · 0 comments
Open

Idea: Diagnostic actions #131

mrcjkb opened this issue Feb 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mrcjkb
Copy link
Owner

mrcjkb commented Feb 3, 2023

Feature description

Similar to hover actions, but for diagnostics.

In monorepos with multiple projects, hls will fail to start if there is an error in a subpackage the package depends on. It will show a single diagnostic containing the ghc error, including the file where the error occurred.
In this case, a diagnostic action could parse the error location and add an action for going to the error location (This might be something to improve in hls).

Additionally, hls sometimes provides code actions that can fix diagnostic issues. These could be identified and presented as diagnostic actions, too.

@mrcjkb mrcjkb added the enhancement New feature or request label Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant