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
Avoid deprecated API overwrite new API #2
Conversation
@@ -117,6 +117,7 @@ function generateWrappers(Nvim, types, metadata) { | |||
if (typeName !== 'Nvim' && typeName !== 'Ui') { | |||
method.metadata.parameterTypes.shift(); | |||
} | |||
if (func.deprecated_since && Type.prototype.hasOwnProperty(methodName)) continue |
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.
Could you fix style?
if (func.deprecated_since && Type.prototype.hasOwnProperty(methodName)) {
continue;
}
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.
sure
Thank you for catching it. Please check the review comment. |
@rhysd fixed, but I don't know how to make test get passed, the failure exists without this patch. |
Neovim have deprecated API, for example :
Current implementation could overwrite the newer API with deprecated ones, like
ui_attach