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

Ability to manually reset pending_request flag #1432

Open
LordMZTE opened this issue Apr 28, 2024 · 0 comments
Open

Ability to manually reset pending_request flag #1432

LordMZTE opened this issue Apr 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LordMZTE
Copy link

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

Unfortunately, I've sometimes gotten lsp-saga stuck on a code action such that I requested it and then some error caused it to abort. I am however not able to reproduce this reliably (so far, it only happened in a buffer which suspiciously had a broken treesitter parser). This gets lsp-saga into a state where it can no longer process further code action requests. It would be nice to have an escape hatch for this.

Describe the solution you'd like

A command such as :Lspsaga reset_state could be introduced that reset the pending_request variable in codeaction and other places where such a variable is used.

Describe alternatives you've considered

Restarting Neovim is the only solution I'm aware of at the moment. Obviously, the best solution would be to address the root cause, but as I've mentioned I haven't been able to reliably invoke this behavior. I'll open another issue in case I find out more here. Additionally, this system is inherently a little prone to this breakage, so being able to do a clean reset is probably handy anyways.

@LordMZTE LordMZTE added the enhancement New feature or request label Apr 28, 2024
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