2020-10-05 21:35:16 +00:00
|
|
|
{
|
|
|
|
"go.useLanguageServer": true,
|
|
|
|
"[go]": {
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"editor.codeActionsOnSave": {
|
2020-10-06 03:25:43 +00:00
|
|
|
"source.organizeImports": false,
|
2020-10-05 21:35:16 +00:00
|
|
|
},
|
|
|
|
// Optional: Disable snippets, as they conflict with completion ranking.
|
|
|
|
"editor.snippetSuggestions": "none",
|
|
|
|
},
|
|
|
|
"[go.mod]": {
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"editor.codeActionsOnSave": {
|
|
|
|
"source.organizeImports": true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"gopls": {
|
|
|
|
// Add parameter placeholders when completing a function.
|
|
|
|
"usePlaceholders": true,
|
|
|
|
|
|
|
|
// If true, enable additional analyses with staticcheck.
|
|
|
|
// Warning: This will significantly increase memory usage.
|
|
|
|
"staticcheck": true,
|
|
|
|
}
|
|
|
|
}
|