vscode-go
vscode-go copied to clipboard
vscode-go: changing testFlag setting requires restart
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.
This doesn't always happen, and I'm not sure when it does or doesn't.
CC @hyangah
At the very least, this should be deterministic, and generally the expectation is that setting changes take effect immediately.