-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat(lsp): deprecate non-method client functions #31207
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
Conversation
b25e1a3
to
ff72349
Compare
4e3d152
to
bab2cd2
Compare
e7b1981
to
5e7a75a
Compare
@mfussenegger did you want to give any feedback on this. I admit it's a big piece of churn, but something I've wanted to do for a long time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure: The methods already worked in 0.10, so plugins can switch to method calls without breaking 0.10?
Otherwise lgtm
Yes, both work. The worst thing is all the LuaLS errors every plugin/config will now get. EDIT:
Oh wait, no. The methods in 0.10 were all prefixed with If plugins want to remain compatible then they need to continue to use the |
But it would also cause deprecation warnings, right? |
No deprecation warnings (I don't think) since I set the version to 0.12. We can set that higher. I don't care how long we maintain these for since it's only 24 LOC. EDIT: updated it to 0.13. |
Deprecated: - `client.request()` -> `client:request()` - `client.request_sync()` -> `client:request_sync()` - `client.notify()` -> `client:notify()` - `client.cancel_request()` -> `client:cancel_request()` - `client.stop()` -> `client:stop()` - `client.is_stopped()` `client:is_stopped()` - `client.supports_method()` -> `client:supports_method()` - `client.on_attach()` -> `client:on_attach()` Fixed docgen to link class fields to the full function doc.
5e7a75a
to
5eb6c74
Compare
I might be missing something, but
This doesn't seem to be the case, specifically in 0.11:
works fine, but in 0.10 produces:
Let me know if an issue is welcome. |
See #31207 (comment)
|
Oh I'm bad at reading the edit... Thanks. |
This isn't 0.10-compatible. See neovim/neovim#31207 (comment)
Deprecated:
client.request()
->client:request()
client.request_sync()
->client:request_sync()
client.notify()
->client:notify()
client.cancel_request()
->client:cancel_request()
client.stop()
->client:stop()
client.is_stopped()
client:is_stopped()
client.supports_method()
->client:supports_method()
client.on_attach()
->client:on_attach()
Fixed docgen to link class fields to the full function doc.