为什么扩展总是在“回购”菜单中?

时间:2019-09-20 16:23:30

标签: azure azure-devops devops

为devops创建扩展 这是我的清单文件。但是,无论我如何建造。我的扩展名始终显示在“ Repos”菜单中,就像我在Azure Repos类别中指出的那样。为什么会这样?

{
    "manifestVersion": 1,
    "id": "7pacePlugin",
    "publisher": "Dmitry",
    "version": "1.0.2",
    "name": "TimeTrackingInvoices",
    "description": "A sample Visual Studio Services extension",
        "categories":["Azure Boards"],
    "public": false,

    "targets": [
        {
            "id": "Microsoft.VisualStudio.Services"
        }
    ],
    "contributions": [
        {
            "id": "invoices",
            "type": "ms.vss-web.hub",
            "targets": [
                "ms.vss-code-web.code-hub-group"
            ],
            "properties": {
                "name": "Invoices",
                "uri": "Invoices.html",
                                "iconAsset": "Dmitry.7pacePlugin/images/icon.png",
                                "_sharedData": {
                                           "assets": [
                                        "Dmitry.7pacePlugin/images/icon.png"
                                             ]
                                        }
            }
        }
    ],
    "files": [
        {
            "path": "Invoices.html",
            "addressable": true
        },
        {
            "path": "node_modules/vss-web-extension-sdk/lib",
            "addressable": true,
            "packagePath": "lib"
        },
                {
         "path": "images/icon.png",
         "addressable": true
     }
    ]
 }

1 个答案:

答案 0 :(得分:1)

它与您的存储库一起出现,因为您告诉它显示在其中:

"targets": [
    "ms.vss-code-web.code-hub-group"
]

请参阅documentation,以查看扩展名显示的位置选项。