Skip to content
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

Smarter parameter info for .Bind() #233

Closed
Lexikos opened this issue Dec 18, 2022 · 0 comments
Closed

Smarter parameter info for .Bind() #233

Lexikos opened this issue Dec 18, 2022 · 0 comments

Comments

@Lexikos
Copy link

Lexikos commented Dec 18, 2022

This is a feature request.

When writing a function or method call, or hovering over a reference to a function, the extension is generally able to show the function's parameters. How difficult would it be to extend this to Bind?

For example, if I hover over this.DisplaceFile, the definition is shown as (MyClass) DisplaceFile(sourcePath, destPath, version). Instead of this.DisplaceFile.Bind( merely showing Params*, it would be helpful to show this, sourcePath, destPath, version.

(When calling Bind on a method, there is an explicit this corresponding to the target object for the original method, in addition to the implicit this which is the method itself. Like other parameters, it can be omitted from the bound parameters, and have a value supplied when the bound function is called.)

In effect, the extension could behave as though every function has its own overridden version of Bind which accepts the same parameters as the function (but optional) and every method has the same but with an explicit this parameter.

thqby added a commit that referenced this issue Dec 18, 2022
@thqby thqby closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants