This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Function complete without types sometimes drops parameters #1279
Closed
Description
openedon Oct 13, 2017
Using the "go.useCodeSnippetsOnFunctionSuggestWithoutType" as true sometimes autocompletes without the names of parameters. I haven't been able to fully understand the rule, but it happens sometimes when there are multiple parameters of the same type.
A code snippet that reproduces this is
package main
type ScoreInputer interface {
ScoreInput(score, x []float64) []float64
}
func main(){
var s ScoreInputer
s.ScoreInput(, x)
}
When completing the ScoreInput
, the score
name is not filled in.
Full settings:
{
"editor.wordWrap": "on",
"editor.wordBasedSuggestions": false,
"editor.rulers": [
80
],
"window.openFilesInNewWindow": "on",
"window.restoreWindows": "all",
"window.closeWhenEmpty": true,
"go.buildOnSave": "package",
"go.vetOnSave": "off",
"go.formatOnSave": true,
"go.formatTool": "goimports",
"go.lintOnSave": "off",
"go.useDiffForFormatting": false,
"go.gocodeAutoBuild": false,
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
"[go]": {
"editor.wordWrap": "off",
"editor.wordBasedSuggestions": true,
"editor.formatOnSave": true
},
"git.enabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels