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

Feature Request: Propose undefined method names as autocomplete suggestions #30881

Closed
MartinHaeusler opened this issue Jul 17, 2017 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@MartinHaeusler
Copy link

Especially during UI coding, I repeatedly find myself in the following situation:

....
<button onClick={this.handleClick} />

and this.handleClick is undefined. Next, I place the cursor in the class, and type...

private handleClick(e: MouseEvent) {
}

It would be super useful if handleClick would be offered as auto-complete suggestion by VSCode in this situation. In general, any undefined symbol name could be offered as a completion option when typing a new method. There's a pretty good chance in general that the name of a method-under-construction already appears as an undefined symbol somewhere else in the class. I don't know how technically challenging this feature would be, but it sure would come in handy.

@mjbvz mjbvz self-assigned this Jul 17, 2017
@mjbvz mjbvz added feature-request Request for new features or functionality *duplicate Issue identified as a duplicate of another issue(s) labels Jul 19, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Jul 20, 2017

I believe we already included this functionality under the name "word based suggestions". The caveat is that word based suggestions are only shown in contexts where no other suggestions are available. This is documented in #21611 which also tracks a feature request to show word suggestions in more contexts

Closing as a duplicate of #21611

@mjbvz mjbvz marked this as a duplicate of #21611 Jul 20, 2017
@mjbvz mjbvz closed this as completed Jul 20, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants