-
Notifications
You must be signed in to change notification settings - Fork 645
debug hover string variable ...more appears #1777
Comments
That For s1, delve returns a string with length 6. The string itself is of length 2 and so the +4. If anyone wants to take a look at how to fix this, then PRs are most welcome. |
Hi Ramya. I am looking for something to help the vscode-go extension and I came across this issue. I have the debugging the debug adapter running and see the code in goDebug.ts hitting as you noted. I am still trying to figure out why delve returns a string with length 6 even though the string is only length 2. Id be happy to submit a PR for this issue just a little confused on what the expected outcome of this issue is. |
len("你好") is 6
len([]rune("你好")) is 2 |
Looks like 6 is for the number of bytes and 2 is the number of characters. |
… hover output. Fixes microsoft#1777
… hover output. Fixes microsoft#1777
This fix is now out in the latest update (0.6.85) to the Go extension. Thanks @xmattstrongx! |
hover on s1, I get message "你好...+4 more"
“你好” is expected.
The text was updated successfully, but these errors were encountered: