Ste*_*ger 2 visual-studio-code vscode-extensions vscode-settings
我创建了一个自定义 VSCode 扩展,它需要一个配置来设置 vscode 的用户设置文件。
为什么设置显示为未知配置?它按预期工作。
我查看了您的 repo,并注意到您的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"
}
}
}
},
Run Code Online (Sandbox Code Playgroud)
我提出了解决此问题的拉取请求。
| 归档时间: |
|
| 查看次数: |
2279 次 |
| 最近记录: |