You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto variable auto-complete is not working as expected
Expected: cMap
Got: cmcMap
Code Used.
package main
funcmain() {
test("abcabcbb")
}
functest(sstring) int {
b:= []byte(s)
varlastintvarcMapmap[int]intfor_, v : =rangeb {
cmcMap// <------------------- This is where problem isreturn0
}
Steps to reproduce the behavior:
Copy the above code
Try to update the line with <------------------- This is where the problem is comment
Screenshots or recordings
Recording.2021-10-12.02-41-31.from.Snipclip.mp4
The text was updated successfully, but these errors were encountered:
Thanks for the repro case! I don't know if it's likely that we'll address this soon since there are multiple issues going on here, but we can certainly look into it at some point.
stamblerre
changed the title
Variable autocomplete is not working correctly on broken code.
x/tools/gopls: variable autocomplete is not working correctly on broken code
Oct 14, 2021
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Oct 14, 2021
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Describe the bug
Auto variable auto-complete is not working as expected
Code Used.
Steps to reproduce the behavior:
<------------------- This is where the problem is
commentScreenshots or recordings
Recording.2021-10-12.02-41-31.from.Snipclip.mp4
The text was updated successfully, but these errors were encountered: