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

Deduplicate items in location list #3792

Merged
merged 1 commit into from
Jul 3, 2021

Conversation

gpanders
Copy link
Contributor

Simple PR to deduplicate items added to the location list.


I recently added a hook to the Nvim LSP configuration to pipe all of its diagnostics through ALE. This works really well, except that there are often duplicate issues found by the LSP and ALE linters. This is a small change that simply deduplicates those entries.

I did not add a new test as the existing test_quickfix_deduplication test already covers deduplication. Let me know if you still want an additional test though.

N.B. I originally wrote this to be configurable with a new option g:ale_deduplicate_loclist, but in the spirit of avoiding adding more configuration levers than necessary I simply made it the default. If you think this should be configurable, let me know and I'll update the PR with a config option.

Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@hsanson hsanson merged commit 49bdbc3 into dense-analysis:master Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants