我创建了一个自定义vscode扩展,它需要配置,设置VSCode的用户设置文件。
为什么设置显示为未知配置?它如预期的那样工作。
发布于 2017-04-21 17:08:16
我查看了您的回购,并注意到您的package.json
文件中有一个错误。keybindings
和configuration
节点必须在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"
}
}
}
},
我做了一个拉请求来解决这个问题。
https://stackoverflow.com/questions/43475778
复制相似问题