vscode 无法在 wsl 下使用 gpg 签名问题的解决方案

最近将开发环境都搬到了 wsl 上,配了一下 gpg,一开始 vscode commit 报错,然后手动在终端测试了一下 gpg 就正常了,后来重启了问题复现,研究了一下,顺便记录一下解决方法。 vscode 的报错: error: gpg failed to sign the data fatal