vscode-tinygo
vscode-tinygo copied to clipboard
GOROOT or something is incorrect when opening terminal
After using TinyGo extension, GOROOT or something is incorrect when opening terminal.

Probably due to the environment variables set below. https://github.com/tinygo-org/vscode-tinygo/blob/96d460ad5e3b8480e85c5bd6a8b9e9061e338972/src/extension.ts#L96-L99
This is intentional. Why is this a problem?
In my case, for example, I write udp server and usbcdc apps in go. And these applications are often managed along with microcontroller-side sources written in tinygo.
In such a case, I would want to build from the vscode terminal.
In other cases, when writing wasm, we often set up the server with go.