vscode 中的选项 formatting.local - 开始工作了吗?

The option formatting.local in vscode-go its working?

我正在使用 vscode-go extension and reading the options I see than exist the formatting.local 选项,但这个选项似乎不起作用我正在尝试这样配置...

settings.json

"go.formatTool": "goimports",
"go.formatting.local": "github.com/mycompany/my_app"

有什么问题吗?

"formatting.local" 是一个 gopls 设置。 https://github.com/golang/vscode-go/blob/master/docs/settings.md#settings-for-gopls 所以,请暂时将它添加到 "gopls" 块中。

"gopls": {
   "formatting.local": "github.com/mycompany/my_app"
}