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

x/tools/gopls: option to autocomplete function call without parentheses #41813

Open
HymanZHAN opened this issue Oct 6, 2020 · 2 comments
Open

x/tools/gopls: option to autocomplete function call without parentheses #41813

HymanZHAN opened this issue Oct 6, 2020 · 2 comments

Comments

@HymanZHAN
Copy link

@HymanZHAN HymanZHAN commented Oct 6, 2020

(This is more of a question before it becomes a feature request. However, the original Slack invite link is no longer active.)

Is your feature request related to a problem? Please describe.
Is it possible to leave out the parentheses of a method when doing autocompletion? For example, when typing time.No and hit tab, instead of autocompleting with time.Now() is it possible to complete it as time.Now?

Describe the solution you'd like
Have an option for this, something like gopls.includeParenthesesWhenAutocomplete that can be set to false.

Describe alternatives you've considered
N/A

Additional context
I have been writing a mix of C++, Python, and JS/TS, and all these languages' autocompletion on VS Code are without the parentheses. It's muscle memory for me now to reach for ( after completing the method and it's really counter-productive especially when I need to switch between languages.

@hyangah hyangah changed the title Possible to exclude the brackets when doing autocompletion? x/tools/gopls: option to autocomplete function call without parentheses Oct 6, 2020
@hyangah
Copy link
Contributor

@hyangah hyangah commented Oct 6, 2020

@HymanZHAN thanks for the feature request. This is about adding a new knob for gopls' autocompletion behavior, so I will transfer this to its issue tracker. (cc @stamblerre )

@hyangah hyangah transferred this issue from golang/vscode-go Oct 6, 2020
@gopherbot gopherbot added this to the Unreleased milestone Oct 6, 2020
@HymanZHAN
Copy link
Author

@HymanZHAN HymanZHAN commented Oct 6, 2020

@hyangah Thanks!

@stamblerre stamblerre removed this from the Unreleased milestone Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.