-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
LSP code actions not working #1373
Comments
@ericdallo It seems with version 6.1.3 of vscode-languageclient, when a code action is selected from the editor menu, a In version 7.0.0 of the client library, when a code action is selected from the editor menu, a I'm guessing Calva needs to manually send the command returned in the |
@bpringe good debugging, but I wonder how Dart-Code vscode extension does the same of calva and it works, I didn't find anything showing that they are sending the request manually. Anyway, if that fixes the problem would be nice |
When running the
When doing the same with version 7.0.0 of the client lib, I see this in the message logs, and the edit is not applied in the editor:
I may look into that extension's code then. I just don't know for sure how a client is supposed to handle the resolve response. It didn't seem very obvious in the protocol specification. |
It says the command is executed, but that doesn't seem to be the case. |
Yeah, really weird, I suspect it's a bug on vscode. |
It seems that after #1336 which bumped
vscode-language-client
from6.1.3
->7.0.0
, code actions stopped working. It's possible to list and show the code actions popup, but when clicking in any of then nothing happens or is logged anywhere.Repro:
ctrl/command
+.
cycle-privacy
This is an example of another famous LSP extension that uses the same version and code actions work: https://github.com/Dart-Code/Dart-Code/blob/master/package.json#L2715
The text was updated successfully, but these errors were encountered: