Skip to content

Update Single Quickfix list for showing diagnostics. #951

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

Open
ajayvigneshk opened this issue Jan 14, 2020 · 2 comments
Open

Update Single Quickfix list for showing diagnostics. #951

ajayvigneshk opened this issue Jan 14, 2020 · 2 comments

Comments

@ajayvigneshk
Copy link

Is your feature request related to a problem? Please describe.

Currently the LSC updates the active quickfix list. Say I have a quick fix list populated with grep matches, when LSC kicks in it replaces the grep matches.

Describe the solution you'd like

Update / use a single Quickfix list as opposed to the active one, since multiple apps use the quickfix list.

Additional context

I am learning Rust and would like to implement this feature. Some ideas to start would be appreciated. I see there is no direct way to get the quickfix id (which I guess is used for updating). Is there some other way of implementing this?

@ajayvigneshk
Copy link
Author

ajayvigneshk commented Feb 6, 2020

I have a basic piece of code with a vim script function that returns the id of quickfix list if the title matches. Have modified the rust code to invoke it. But there are synchronization issues. 'publishdiagnostics' is invoked quickly in succession. I need to atomcially do getting the quick fix list id, adding/ updating it. Any advice would be useful.

@cideM
Copy link

cideM commented May 12, 2020

This is actually a nice idea and it's an issue with quite a lot of plugins: eventually multiple plugins end up overwriting each others' quickfix list. 👍

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

No branches or pull requests

2 participants