Description
Setup
No Go settings. The global setting editor.suggest.snippetsPreventQuickSuggestions
set to true
.
Bug description
While inside placeholders of snippets in Go, VSCode suggest auto-completions even though the global setting editor.suggest.snippetsPreventQuickSuggestions
is set to true
.
Steps to reproduce:
Create the snippet
"Example": {
"scope": "go",
"prefix": "ex",
"body": [
"type $1 struct {}$0",
],
}
Open a Go file, type "ex" and tab three times, yielding:
type type type struct {} struct {} struct {}
Discussion
By default in VSCode editor.suggest.snippetsPreventQuickSuggestions
is set to true
. However, in version 0.25, vscode-go introduced an override of the global default value to false
as per #839.
The confusion is two-fold:
- The behaviour of
vscode-go
does not align with the behaviour of VSCode and other language packages - Setting the global value has no effect
In principle, default behaviour should be coherent between languages. I don't see why snippet expansion should work differently for Go compared to other languages. For those who use only Go, there's potentially a 50/50 split between those who are happy about the setting and those who are not. In reality however, most VSCode users work with more than one language, and this change forces all of them to learn about this setting.
I therefore propose that the default setting override introduced in v0.25 is reverted.
Edit: changed proposed solution to align with title and actual concern.