-
Notifications
You must be signed in to change notification settings - Fork 818
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
CodeActionKind filtering #970
Comments
Since I've been implementing this in Sublime's LSP client, I can share some practical experience. As far as servers behave, the server should really only receive (through |
Yes, the idea is that the server for example should return all refactoring code actions if asked for @rchl please note that for backwards compatibility a client can still ask a server for code action with no context since this was the initial implementation. |
Yes. And if the server does not understand Note that I'm talking in the context of user-configurable "Code actions on save" feature which is really an editor rather than spec feature. |
For the code action on save you are correct. And there was an bug in VS Code which didn't handle this correctly but that got fixed. |
I will close the issue. Please ping if there is any action that we should apply to the spec. |
Since
CodeActionKind
can be specified as a hierarchy or explicitly listed out in the capabilities does that mean that filtering viaCodeActionContext.only
is really a match against the beginning of the string?The text was updated successfully, but these errors were encountered: