VS Code Go extension v0.21.0 introduced this bug which was fixed in v0.21.1.
Read patch notes here -> https://github.com/golang/vscode-go/releases/tag/v0.21.1
VS code will automatically pick up the extension update but requires a restart.
Or you could uninstall extension, re-install extension (v0.21.1 or higher) and reload VS code.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…