What version of Go, VS Code & VS Code Go extension are you using?
- Run
go version to get version of Go from the VS Code integrated terminal.
- go version go1.25.6 windows/amd64
- Run
gopls -v version to get version of Gopls from the VS Code integrated terminal.
- golang.org/x/tools/gopls v0.21.0
- Run
code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
- 1.109.0 bdd88df003631aaa0bcbe057cb0a940b80a476fa x64
- Check your installed extensions to get the version of the VS Code Go extension
Describe the bug
When editing not correct go code, if autocompleted is initiated and accepted all incorrect code is deleted.
Here is example of code I edit
`
package editor
type Theme struct {
MainTextColor colore
MenuHeight float32 = 20
ToolbarHeight float32 = MenuHeight
TabButtonWidth float32 = 60
TabButtonHeight float32 = 30
}
`
I am editing line MainTextColor colore, autocomplete emerges and propose me to autocomplete colore to colorex. If I accept, half of code is deleted and I get this
`
package editor
import "github.com/igadmg/goex/image/colorex"
type Theme struct {
MainTextColor colore
colorex
MenuHeight float32
}
`
Screenshots or recordings
Here is a vide recording of that https://imgur.com/a/YeEU0Xl
What version of Go, VS Code & VS Code Go extension are you using?
go versionto get version of Go from the VS Code integrated terminal.gopls -v versionto get version of Gopls from the VS Code integrated terminal.code -vorcode-insiders -vto get version of VS Code or VS Code Insiders.Describe the bug
When editing not correct go code, if autocompleted is initiated and accepted all incorrect code is deleted.
Here is example of code I edit
`
package editor
type Theme struct {
MainTextColor colore
}
`
I am editing line
MainTextColor colore, autocomplete emerges and propose me to autocomplete colore to colorex. If I accept, half of code is deleted and I get this`
package editor
import "github.com/igadmg/goex/image/colorex"
type Theme struct {
MainTextColor colore
colorex
MenuHeight float32
}
`
Screenshots or recordings
Here is a vide recording of that https://imgur.com/a/YeEU0Xl