For example, this code:
package main
import "fmt"
func main() {
foo := "bar""
fmt.Println(foo)
}
turns into
package main
import "fmt"
func main() {
foo: = "bar""
fmt.Println(foo)
}
on save. Note the assignment and the double double quotes. This erroneous replacement affects the entire file. I believe it started to happen with the last version or the one before.
Go options enabled:
"go.formatTool": "goreturns"
Same thing happens with gofmt
.
VS Code version 1.25.1, go version go1.10 darwin/amd64.
Any ideas why this happens?
Thanks!