vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

vscode-go: changing testFlag setting requires restart

Open pjweinb opened this issue 1 year ago • 3 comments

Go version

go version go1.23-20240317-RC00 cl/616607620 +0a6f05e30f X:fieldtrack,boringcrypto linux/amd64

Output of go env in your module/workspace:

doesn't matter

What did you do?

in settings.json, i changed the value of go.TestFlags

What did you see happen?

clicking on the "run test | debug test" line above the function definition no longer works, requiring gopls to be restarted (Developer: reload window)

What did you expect to see?

At least a warning that the window needed to be reloaded. It would be even better if the window did not have to be reloaded.

pjweinb avatar Mar 29 '24 13:03 pjweinb

This doesn't always happen, and I'm not sure when it does or doesn't.

pjweinb avatar Mar 29 '24 13:03 pjweinb

CC @hyangah

findleyr avatar Apr 25 '24 19:04 findleyr

At the very least, this should be deterministic, and generally the expectation is that setting changes take effect immediately.

findleyr avatar Apr 25 '24 19:04 findleyr