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

func snippet prefix conflict with func keyword #3144

Open
setanarut opened this issue Jan 20, 2024 · 1 comment
Open

func snippet prefix conflict with func keyword #3144

setanarut opened this issue Jan 20, 2024 · 1 comment

Comments

@setanarut
Copy link

Vscode always selects the func keyword first. This is because the func snippet and the func keyword are the same. "editor.snippetSuggestions":"top", even if selected.

"prefix": "func",

To fix change func to fu.

"prefix": "fu", 

Before:

Ekran Resmi 2024-01-20 16 01 28

After:

Ekran Resmi 2024-01-20 16 03 36

I made a pull request but it was rejected. Because of the Contributor License Agreement (CLA). I can't waste my time on this.

@hyangah
Copy link
Contributor

hyangah commented Jan 22, 2024

Thanks for filing the issue. We are considering to remove or shorten the list of snippets this extension supplies using this go.json snippet file. #160

Can you use the user snippet? https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets

@suzmue suzmue modified the milestones: Untriaged, vscode-go/unplanned Jan 24, 2024
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

4 participants