Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

add typed function declaration snippet #306

Closed
wants to merge 2 commits into from
Closed

Conversation

azr
Copy link

@azr azr commented Apr 20, 2016

Hello there !

vscode-go made me switch to vscode from sublime text ! So nice one and thanks !

And I event recommend it ! Could you imagine ? a microsoft product !

Anyways, I'm proposing this snippet because I used it a lot in sublime text.

In fact the GoSublime snippet is a little bit better because it will propose a list with $1 prepopulated with known local types, which is awesome.

cheers !

@msftclas
Copy link

Hi @azr, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@lukehoban
Copy link
Contributor

Thanks for this.

The feature you really want here is being tracked in #168. I'd love to get that added.

I'm not as sure about the addition in this PR:

  1. I'm not sure funct is the right name. What was your reasoning for the name? I suspect discoverability would be low and thus this wouldn't get used much.
  2. More importantly, feels like this shouldn't need a name. If Method Suggestion #168 was implemented, the completion list could just include generated snippets.

@azr
Copy link
Author

azr commented Apr 21, 2016

1/ to create a method you'd type func so the autocompletion would trigger.

2/ if someone's on #168 I think we could just close this pr. I'd love it too !

thanks :)

@azr azr closed this Apr 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants