Skip to content

Conversation

@cmm
Copy link

@cmm cmm commented Sep 7, 2025

This is obviously a hack but it works for my use case, which is the usual "need to use (based)Pyright & Ruff with Eglot".

Prior to this change, Ruff's code actions (at least visible ones, like organizing imports) did not work with Eglot because Eglot invokes such actions through codeAction/resolve only and since Ruff is normally not the promary LSP server its declaration of support for codeAction/resolve was not propagated by the proxy.

My main problem with all this is that I have no idea why codeAction/resolve even exists or what exactly it's supposed to do (and I am furthermore unable to understand the relevant part of the spec), so the approach here, while fixing my immediate problem, is most likely wrong in general.

And it probably would be inadequate in case of several proxied servers with resolve support.

But posting in case anyone finds this useful.

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.

1 participant