debug: support completion/suggestion in debug console
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
- Run
go versionto get version of Go from the VS Code integrated terminal.- go version go1.21.6 windows/amd64
- Run
gopls -v versionto get version of Gopls from the VS Code integrated terminal.- Build info
golang.org/x/tools/gopls v0.14.2
golang.org/x/tools/[email protected] h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=
github.com/BurntSushi/[email protected] h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
github.com/google/[email protected] h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/exp/[email protected] h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=
golang.org/x/[email protected] h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/[email protected] h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=
golang.org/x/[email protected] h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/[email protected] h1:brbkEFfGwNGAEkykUOcryE/JiHUMMJouzE0fWWmz/QU=
golang.org/x/[email protected] h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
golang.org/x/[email protected] h1:Oku7E+OCrXHyst1dG1z10etCTxewCHXNFLRlyMPbh3w=
golang.org/x/[email protected] h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=
honnef.co/go/[email protected] h1:YGD4H+SuIOOqsyoLOpZDWcieM28W47/zRO7f+9V3nvo=
mvdan.cc/[email protected] h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
mvdan.cc/xurls/[email protected] h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.21.0
-
Run
code -vorcode-insiders -vto get version of VS Code or VS Code Insiders.- 1.85.1 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 x64
-
Check your installed extensions to get the version of the VS Code Go extension
- v0.40.1
-
Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Toolscommand.- go: C:\Users\shellwhale\scoop\shims\go.exe: go version go1.21.0 windows/amd64
gopls: C:\Users\shellwhale\go\bin\gopls.exe (version: v0.14.2 built with go: go1.21.0) gotests: not installed gomodifytags: not installed impl: not installed goplay: not installed dlv: C:\Users\shellwhale\go\bin\dlv.exe (version: v1.21.0 built with go: go1.21.0) staticcheck: C:\Users\shellwhale\go\bin\staticcheck.exe (version: v0.4.3 built with go: go1.21.0)
Describe the bug
Debug Console Suggestions are not working
Steps to reproduce the behavior:
Here is an example of debug console suggestions working with the Python debugger
It looks like there is already Delve support for this https://github.com/go-delve/delve/pull/3004
The delve feature is for dlv cli. I don't know how this can be implemented on top of DAP. Or is there VS Code specific capability to utilize?
https://microsoft.github.io/debug-adapter-protocol//specification.html#Requests_Completions
Delve DAP currently does not support this capability. cc @suzmue
This would be a great feature! It would greatly improve the user experience