-
Notifications
You must be signed in to change notification settings - Fork 781
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
Should editor consider code actions that are not listed in codeActionKinds
?
#1629
Comments
Regarding
To avoid asking the server for code actions if they are not providing code actions for a specific kind. For code actions on save: the client will ask with a specific kind for code actions on save. The kind is Hope that answers your questions. |
I believe the first part of the question wasn't answered:
|
When the editor is asking for code actions on save the code action kind should be |
Would you add something to that effect to the spec? Note that VSCode doesn't follow that currently and will ask for code actions on save even if those are not registered through |
Good point and this is not only VS Code. We need to keep this for backwards compatibility since code actions on save where there before we add the kind registration. |
Server can specify code actions that it supports through the
codeActionProvider.codeActionKinds
server capability. The spec says this about it:My questions are:
codeActionProvider.codeActionKinds
to be run as part of the "code actions on save" functionality? I know that "Code actions on save" are not really part of the spec but maybe you have opinion as someone who works with the "reference implementation" (VSCode).The text was updated successfully, but these errors were encountered: