gpt4 book ai didi

vscode-extensions - 自定义扩展设置显示为未知配置

转载 作者:行者123 更新时间:2023-12-02 20:48:01 25 4
gpt4 key购买 nike

我创建了一个自定义 VSCode 扩展,它需要配置设置 vscode 的用户设置文件。

为什么设置显示为未知配置?它按预期工作。

enter image description here

最佳答案

我查看了您的存储库,并注意到您的 package.json 文件中存在错误。 keybindingsconfiguration 节点必须内部 contributes,如下所示(我删除了 keybindings 因为它是空的):

"contributes": {
"commands": [
{
"command": "extension.postMessage",
"title": "Microsoft Teams: Post Message"
},
{
"command": "extension.postCurrentFile",
"title": "Microsoft Teams: Post Current File"
}
],
"configuration": {
"type": "object",
"title": "Visual Studio Code Microsoft Teams configuration",
"properties": {
"microsoftteams.teamswebhook": {
"type": "string",
"default": "",
"description": "Microsoft Teams Webhook"
}
}
}
},

我做了一个pull request解决这个问题。

关于vscode-extensions - 自定义扩展设置显示为未知配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43475778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com