goplus / vscode-gop

Go/Go+ extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=goplus.gop
Other
8 stars 11 forks source link

Rename Symbol : not work rename variable name at gop file #30

Closed qinhongwei123 closed 10 months ago

qinhongwei123 commented 10 months ago

What version of Go, VS Code & VS Code Go extension are you using?

Version Information
* Run `go version` to get version of Go from _the VS Code integrated terminal_. - go version go1.21.4 darwin/arm64 * Run `gopls -v version` to get version of Gopls from _the VS Code integrated terminal_. - golang.org/x/tools/gopls@v0.14.2 * Check your installed extensions to get the version of the VS Code Go extension - v0.1.0-dev

Describe the bug

Rename Symbol : not work rename variable name at gop file

Steps to reproduce the behavior:

  1. Open Gop File
  2. Code and select variable
  3. Call "Rename Symbol"
  4. See error

    testdead/testdead.gop:5:1: unexpected var object "var st string" (please report a bug)

qinhongwei123 commented 10 months ago

fix by https://github.com/goplus/tools/pull/119