Как скрыть панель быстрого добавления элементов блогов, используя расширение VSTS?

Я хочу сделать расширение VSTS, которое может скрывать элементы быстрого добавления панели при загрузке страницы.

быстрое добавление элементов панели ожидания

Расширение предназначено для обновления 2 TFS 2015.

Я запустил этот код, но ничего не происходит.

(Action.html)

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Action Sample</title>
</head>
<body>
    <script src="scripts/jquery-2.2.3.min.js"></script> 
    <script src="scripts/VSS.SDK.min.js"></script> 
    <script>
      VSS.init();
      var menuContributionHandler = (function () {
      "use strict";
         return {
         execute: function (actionContext) {
             console.log("extension running...");
             $(".panel-region").hide();
             console.log("extension running...Done");                 
         }
     };
 }());

 // Associate the menuContributionHandler object with the "myAction" menu contribution from the manifest.
     VSS.register("myAction", menuContributionHandler);
    </script>
    <div>
        The end user doesn't see the content on this page.
        It is only in the background to handle the contributed menu item being clicked.
</div>
</body>

(ВСС-extension.json)

{
 "manifestVersion": 1,
 "id": "targetWork",
 "version": "0.1.18",
 "name": "targetWork",
 "description": "targetWork.",
 "publisher": "ms-samples",
 "public": false,
 "categories": [
   "Developer samples"
 ],
 "links": {
   "learn": {
     "uri": "https://github.com/Microsoft/vso-extension-samples"
   }
 },
 "icons": {
   "default": "images/fabrikam-logo.png"
 },
 "targets": [
   {
     "id": "Microsoft.VisualStudio.Services"
   }
 ],
 "branding": {
   "color": "rgb(190, 39, 3)",
   "theme": "dark"
 },
 "files": [
   {
     "path": "scripts",
     "addressable": true
   },
   {
     "path": "images",
     "addressable": true
   },
   {
   "path": "action.html",
         "addressable": true
       }
     ],
     "contributions": [
       {
         "id": "myAction",
         "type": "ms.vss-web.action",
         "description": "Run in Hello hub action",
         "targets": [
           "ms.vss-work-web.work-item-context-menu",
           "ms.vss-work-web.backlog-board-card-item-menu",
           ".work-hub-group",
           "ms.vss-web.project-hub-groups-collection",
           ".backlogs"
         ],
         "properties": {
           "text": "Run in Hello hub",
           "title": "Run in Hello hub",
           "icon": "images/icon.png",
           "groupId": "Explore",
           "uri": "action.html"
         }
       }
     ]
   }

Я не вижу, что расширение загружается при просмотре консольного окна браузера. Так что я думаю, что что-то не так с моим использованием целей.

Поэтому моя самая большая проблема в том, что я не могу понять, как должна быть указана цель.

Я искал итоги, связанные с этой страницей (https://www.visualstudio.com/en-us/integrate/extensions/reference/targets/overview) и опробовал их, и я смогу заставить их работать. Но ничего не сказано о том, как настроить интерфейс веб-доступа TFS. По крайней мере, ничего, что я могу использовать для моего случая.

Спасибо

редактировать

Благодаря jessehouwing, этот вопрос был дан ответ на этотсообщение stackoverflow

Ответы на вопрос(1)

Ваш ответ на вопрос