Giter Site home page Giter Site logo

microsoft / vsts-extension-samples Goto Github PK

View Code? Open in Web Editor NEW
297.0 98.0 291.0 4.16 MB

Sample extensions for Visual Studio Team Services

Home Page: https://docs.microsoft.com/vsts/extend/

License: MIT License

HTML 24.28% JavaScript 10.21% CSS 1.71% TypeScript 58.27% Batchfile 0.02% PowerShell 5.51%

vsts-extension-samples's Introduction

IMPORTANT: This repository is archived and will be deleted in the future. Please don't rely on the code in this repository when building Azure DevOps extensions. Instead, please refer to the updated Azure DevOps sample extension here:

https://github.com/microsoft/azure-devops-extension-sample


Visual Studio Team Services (VSTS) Sample Extensions

Samples to help jump-start your development of extensions for Visual Studio Team Services (VSTS).

Get started

If you plan to package any of the sample extensions, get:

  1. Node.js
  2. Team Foundation command line interface (npm install -g tfx-cli)
  3. If the extension uses bower (look for bower.json), Bower (npm install -g bower)

If you plan to compile any of the sample extensions, get:

  1. TypeScript (npm install -g typescript)

Get the web extension SDK

Each web extension sample has a bower.json or package.json file, which references third-party libraries used by the sample, including the Visual Studio Services Web Extension SDK. This SDK JavaScript file is required by all web extensions.

From the directory of the sample, run:

If there is a bower.json file present

bower install

or if there is only a package.json file present

npm install

Compile TypeScript Samples

Once the package is installed, simply run tsc. You can alternatively run npm run build, which ensures the correct version of the TypeScript compiler is used. This will also generate the extension package.

Try the extension in Visual Studio Team Services

Most samples can be run without any modifications on Visual Studio Team Services. The steps are:

  1. Create a free Visual Studio Team Services account
  2. Create a Visual Studio Marketplace publisher (all extensions are uploaded under a publisher)
  3. Verify the extension's manifest file (vss-extension.json) either has the public attribute set to false or is not specified (this ensures your extension is not inadvertently made available to all VSTS users)
  4. Package the extension with the ID of your publisher (run tfx extension create --publisher MYPUBLISHERID)
  5. Upload the produced .vsix file to the Marketplace
  6. Share your extension with your VSTS account (right-click on the published extension and select Share)
  7. Install the extension into the account (click on the published extension's title and then click Install)

See the full instructions.

Available samples

Contributions Guide

image

See the places where you can extend and enhance the user's web experience with an extension ---- right from within the web experience.

Build Inspector

Learn about advanced extension concepts like module loading, using UI controls, history, and more.

Note: this sample is written in TypeScript.

UI

image

Explore different UI controls, including menus, toolbars, custom controls, and more.

Public Events (for Team Calendar)

Custom event source for the Team Calendar extension for public holidays.

Build Results Enhancer

This sample extension shows how to make a tab/section contribution to build summary page, reacting to build updates.

This also has a sample code that allows user to render custom data results uploaded from a particular task in build.

You could contribute to build results view in different ways:

  • As a section to any of your own contributed tab for build results view
  • As a section to the existing "summary" tab in build results view
  • As a tab to the build results view

Contributing as a tab and a section to our own tab -

image

Contributing as a section to "summary" tab -

image

This sample is written in TypeScript. The compiled JS files are included in the /out directory, but changes will need to be re-compiled. Open readme.txt for instructions.

Release management extensions

Deployment status enhancer

Once this extension is installed, it shows an enhanced view of the deployment status to each environment

This extension showcases

a summary section contribution to Release summary page.

image

a tab contribution to Release summary page.

image

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

vsts-extension-samples's People

Contributors

ajaypantangi avatar anangaur avatar artemsaveliev avatar ashwinmohan86 avatar dmarcey avatar dwilsonactual avatar hajohns avatar hammyhavoc avatar hross avatar martinwoodward avatar microsoft-github-policy-service[bot] avatar mihaelams1 avatar mmitrik avatar nkirchem avatar obvioussean avatar peterantal avatar ramya-rao-a avatar robeat101 avatar sachinma avatar satishkumaarponnusamy-zzz avatar serkan-inci avatar slumley avatar sumavangala avatar t-hugs avatar taylorcyoung avatar tedchamb avatar willsmythe avatar willsmythe-free avatar yaananth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vsts-extension-samples's Issues

Custom Service Endpoint

Hi,
is it possible to create a custom service endpoint type as you have done for Azure, Jenikins, etc.
If so, could you point me to an example code? Also could we ship this new endpoint type via the extension?

Thanks
Mario

browser tries to download extension html instead of displaying it

I tried installing the https://github.com/Microsoft/vsts-extension-samples/tree/master/calendar-public-events on top of the https://github.com/Microsoft/vsts-team-calendar
The team calendar works fine before installing the public-events sample, but after installing the sample, when I visit the calendar, the browser asks me to download main.html, and then it doesn't show any US holidays.

Similar symptoms occur if I try to make a simple change to the vsts-team-calendar itself. I changed the "Submit a bug or request" string in calendar.html and regenerated the vsix, removed previous team calendar, uploaded/installed the new one, and the browser asks for permission to download calendar.html instead of just showing it.

Not sure if this is related to #65. I tried publishing to my own marketplace account and changing the publisher field in vss-extensions.json accordingly, but that didn't help.

I'm working on-premises with TFS 2017 Update 1.

fabrikam-build-extension

Hi,
just tried to use the sample fabrikam-build-extension in TFS 2017 and on VSTS, but I'm not able to see the build Template. Is it supposed to work on prem and on VSTS?

Dependencies loaded from the wrong path

I checked out the ui-fabric-react folder and wanted to test the extension locally. Therefore I installed the npm-package "http-server" und ran the gulp --local command.

The upload and packaging both worked fine. BUT when the hub is loaded from the web interface it cannot find some important dependencies for ui-fabric because it looks for them in the root directory. However, it is working when using the gulp command and bundle everything together.

Also I could not provide a quickfix and copy the needed files in the root directory, as I could not find the files in the node_modules folder. Is there anything else I have to consider? Thanks.

Develop own widget on dashboard view

Hello everybody.
I am developing some extension for Azure DevOps.
I got the problem with widgets. All examples of this repository shows how to develop it with old UI.
No documentation about new UI.

After many failed attempts, I built an extension from Microsoft example - analytics-example-widget.
But I still do not see any changes on my organization page. (Uploaded, Published and Installed to organization).
All other own HUBs are available.

How can I add any widget/data to dashboard or summary tab in new UI?
Thank you

Deprecated categories in contributions-guide

In vsts-extension-samples/contributions-guide/vss-extension.json the contributions used are no longer usable:

https://github.com/Microsoft/vsts-extension-samples/blob/81ccdf0f7dba36f642080e3f9b9d5b90af1dea17/contributions-guide/vss-extension.json#L9-L14

If you use them, you get an error from ADO saying that the configurations are outdated and you should be using the categories in here: https://docs.microsoft.com/en-us/azure/devops/extend/develop/manifest?view=vsts#required-attributes

Very strangely, I updated my extension to get a screenshot for this bug, but it got accepted. So this validation only applies to new extensions?

Extension points missing on the Backlogs

There are extension points that are missing on the Backlog views, but similar extension points are available in other areas. Adding these missing ones will all me to better enhance our users experience.

  • Backlog item toolbar
  • Sprint Backlog item toolbar
  • Backlog pivot filter menu
  • Sprint Backlog pivot filter menu

supportsTasks contribution property not working

Hello,

I'm improving an extension that currently only provides additional build tasks to include web contributions to display results of my tasks in the build summary and add a couple of contributions that will display specific tabs depending on the task that was defined in the build task.

I'm following the build-results-enhancer sample, and it's been very helpful so far. I already have everything implemented and working. The only thing is that I always get all the contributions displayed. I'm setting the supportsTasks property in the contribution that I want to display only if the correspondent task in in the build definition, but it is not working.

I have tried defining the task dependent contribution like in the example:
{ "id": "build-kiuwan-audit-results-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view and depends on Kiuwan delivery analysis task", "targets": [ "ms.vss-build-web.build-results-view" ], "properties": { "name": "Kiuwan Audit", "uri": "kiuwanAuditTab.html", "supportsTasks": ["4e6e25e3-c0b5-4986-8714-5c751945c15f"] } },
and tried using "id" within the supportsTasks property because it is hinted in the sample readme.md. Like this:
{ "id": "build-kiuwan-audit-results-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view and depends on Kiuwan delivery analysis task", "targets": [ "ms.vss-build-web.build-results-view" ], "properties": { "name": "Kiuwan Audit", "uri": "kiuwanAuditTab.html", "supportsTasks": { "id": ["4e6e25e3-c0b5-4986-8714-5c751945c15f"] } } },
None of this work. I always get the "Kiuwan Audit" contribution displayed independently if I use the task with defined task id or not.

Any help is appreciated. Best,
J.

Build Results Enhancer no longer works

The Build Results Enhancer sample no longer works.

After performing the following steps so that the Marketplace would actually accept the extension -

  1. Updating the categories section in the manifest to Azure Pipelines
  2. Upgrading the tfx-cli version in package.json so that Azure Pipelines is an accepted category

The extension does not work as specified. A section is added to the Build Summary and a Tab is added to build results, but the tab only contains the placeholder text. It does not contain the build dump.

build-inspector readme incorrect

The build-inspector sample readme says that it uses TypeScript and has to be built. The instructions say to run build.cmd but there is no such file in the repo nor is there any sort of build definition. Seems that all the TypeScript is built using the higher level grunt based build.

Please upload TypeScript version of Samples (vsts-extension-samples/ui)

Looks like the samples are compiled versions of the code for vsts-extension-samples/ui/.
The code seems to have been written in TypeScript and then compiled into JS.
This makes it very difficult to understand.

For instance there's no documentation on the following method:

Controls.Enhancement.registerEnhancement(ItemsView, ".hub-view");

If the TypeScript versions were uploaded, the samples would make a whole lot more sense.

Missing contribution (ms.vss-web.charts-service)

Hi,

I am creating a dashboard widget using charts but when I try to load the new extension the browser says "Missing contribution (ms.vss-web.charts-service)".

My vss.extension.json contains:
"demands": ["contribution/ms.vss-dashboards-web.widget-sdk-version-2", "contribution/ms.vss-web.charts-service"]

Can you help me?

King regards.

Make it more clear that Build Status/Info contributions are just samples

There was some confusion about these two contributions since they render as JSON to the user (the JSON shows context information). We should add more text around both of these (and probably all contributions that render like this) so it's more clear to users what they are looking at.

Note: this extension is generally just installed into developers' personal orgs.

not really an issue, but can I test a vsts extension without publishing?

I am investigating if vsts extensions can be tested with a harness to spoof the vsts interactions?

the issue I have is I am learning and one of the things I need to get working is an interaction with the git api. I am following examples and borrowing code from places, but the only way I can test if what I have done will work, is by publishing to the marketplace.

Do you have any advice for how I might be able to test extending some extensions without having to constantly build and publish to the marketplace?

Build enhancement tab example doesn't refresh extension when selected build is changed

On changing the selected build (e.g. by clicking on a build column in the diagram of recent builds) the build enhancement tab extension doesn't refresh. Instead it shows old information that's wrong in the new context.
Is there a way to listen for and react to these changes?


Sorry for the question - the solution works. It seems there is a problem in our update code :-)

VSTS modal dialog close event

Hi,

I am using microsoft VSTS modal dialog and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after event dialog is closed.

I want an event before closing the dialog. How can I do that?

here is the code:

VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) 
{ 
       var contributionId = //id 
       var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
       dialogService.openDialog(contributionId, dialogOptions).then(
               function (dialog) {
                    // do something
        });
}

like its appearing in TFS WorkItem window.

image

Add a Text-Filter-Box to MenuBar

In WorkHub/Query in the menuBar there is a filter-box command.
I'm trying to replicate the base layout of the Query Grid but i don't understand how to add it to the menu control.
Can someone provide a sample?

return callback on close openWorkItem

I am trying to get callback when openWorkItem(id) window is closed. my code is below.

_WorkItemServices.WorkItemFormNavigationService.getService().then(function (workItemNavSvc) { workItemNavSvc.openWorkItem(id).then(function (success) { // do something }); });

I am not getting any response when openWorkItem is closed. how can I achieve this?

TFS server version: 2015.

Adding Custom fields to Work Items

Is it possible to add custom fields to work items as part of the a VSTS extension? I'd like to add some custom input fields and then save those into custom fields on the work item. I'd like this to be automated as part of the extension install instead of the user having to customize their Work Items manually.

Missing Repository creation extension point

"id": "showProperties",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for source files",
"targets": [
"ms.vss-code-web.source-item-menu"
],
"properties": {
"text": "Custom source item action",
"title": "ms.vss-code-web.source-item-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html"
}
},
{
"id": "showProperties_2",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the source explorer grid",
"targets": [
"ms.vss-code-web.source-grid-item-menu"
],
"properties": {
"text": "Custom source grid item action",
"title": "ms.vss-code-web.source-grid-item-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},
{
"id": "showProperties_3",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the source explorer tree",
"targets": [
"ms.vss-code-web.source-tree-item-menu"
],
"properties": {
"text": "Custom source tree item action",
"title": "ms.vss-code-web.source-tree-item-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},
{
"id": "showProperties_4",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the commit/changeset files tree",
"targets": [
"ms.vss-code-web.change-list-item-menu"
],
"properties": {
"text": "Custom change explorer action",
"title": "ms.vss-code-web.change-list-item-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},
{
"id": "showProperties_5",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the commit/changeset summary view file menu",
"targets": [
"ms.vss-code-web.change-list-summary-item-menu"
],
"properties": {
"text": "Custom change list summary item action",
"title": "ms.vss-code-web.change-list-summary-item-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},
{
"id": "showProperties_6",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the git branches tree",
"targets": [
"ms.vss-code-web.git-branches-tree-menu"
],
"properties": {
"text": "Custom Git branch action",
"title": "ms.vss-code-web.git-branches-tree-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},
{
"id": "showProperties_7",
"type": "ms.vss-web.action",
"description": "Shows the target properties for menu actions for the git branches view's diff menu",
"targets": [
"ms.vss-code-web.git-branches-summary-grid-diff-menu"
],
"properties": {
"text": "Custom Git branch diff action",
"title": "ms.vss-code-web.git-branches-summary-grid-diff-menu",
"icon": "images/show-properties.png",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "showProperties"
}
},

https://docs.microsoft.com/en-us/azure/devops/server/release-notes/azuredevops2019u1?view=azure-devops#repository-creation-extension-point

Dynamic drop-down on Create Release page

Hello,

Is there a way to extend the Create Release screen and add a custom drop down ? (only for a specific releases, where the release name does match a pattern) The extension would pass the user selection as a variable to be used by the tasks within.

Update to tfx tooling

The readme still mentiones the deprecated vset utility. It should be updated to use the current tfx tool.

And Visual Studio Online should be Visual Studio Team Services :)

fabrikam-build-extension

Hi,

I'm trying to use the fabrikam-build-extension on a TFS 2017.2 on premise.
The extension uploads with no error, but no custom build definition template is displayed - neither on existing projects nor on new created projects.
Any idea what's wrong?

I've attached the VSIX I've used.
fabrikam.fabrikam-build-extension-0.0.1.vsix.zip

2 Contributions not working

I noticed the following 2 contributions do not seem to be working;

ms.vss-work-web.product-backlog-tabs
ms.vss-work-web.iteration-backlog-tabs

they are listed in the manifest as follows;
{
"id": "product-backlog-tab",
"type": "ms.vss-web.tab",
"description": "Adds a tab to the Product Backlog page.",
"targets": [
"ms.vss-work-web.product-backlog-tabs"
],
"properties": {
"name": "Web Context",
"title": "Web Context (ms.vss-work-web.product-backlog-tabs)",
"uri": "context.html",
"dynamic": false
}
},
{
"id": "iteration-backlog-tab",
"type": "ms.vss-web.tab",
"description": "Adds a tab to the Iteration Backlog page.",
"targets": [
"ms.vss-work-web.iteration-backlog-tabs"
],
"properties": {
"name": "Web Context",
"title": "Web Context (ms.vss-work-web.iteration-backlog-tabs)",
"uri": "context.html",
"dynamic": false
}
},

Neither of these 2 options are showing in UI when I build and install the extension from github.

Widget question

Hi,

In the widget I'm trying to build, I would like to reference jQuery. Is it by any chance referenced in the context by default? Is there any framework available that will make me consume my own REST web service?

Thanks

sample steps broken around grunt

The readme says we should run npm install and then grunt. On Win10 at least, running npm install attempts to install grunt 0.4.5. That does not show up on the command line. Reading around on the grunt site it seems that grunt is no longer installed globally. I addressed this by using
npm install -g grunt-cli

Samples error during build

Many of the typescript samples error during build. The project typescript files appear to output correctly, but the error will cause issues with most build pipelines.
Is there a way around these errors? Is there an issue with the vss-web-extension-sdk?

Steps to reproduce

git clone https://github.com/Microsoft/vsts-extension-samples
cd vsts-extension-samples/build-inspector
npm install
npm run build

Error output

> [email protected] build C:\Temp\vsts-extension-samples\build-inspector
> tsc -p .

node_modules/@types/react/index.d.ts(165,11): error TS2559: Type 'Component<P, S>' has no properties in common with type 'ComponentLifecycle<P, S>'.
node_modules/vss-web-extension-sdk/typings/vss.d.ts(3463,14): error TS2559: Type 'TemplateViewModel' has no properties in common with type 'EnhancementOptions'.
node_modules/vss-web-extension-sdk/typings/vss.d.ts(9965,14): error TS2415: Class 'ComboDateBehavior' incorrectly extends base class 'BaseComboBehavior'.
  Types of property 'getValue' are incompatible.
    Type '() => Date' is not assignable to type '<TValue>() => TValue'.
      Type 'Date' is not assignable to type 'TValue'.
node_modules/vss-web-extension-sdk/typings/vss.d.ts(10050,14): error TS2415: Class 'ComboMultiValueBehavior' incorrectly extends base class 'ComboListBehavior'.
  Types of property 'getValue' are incompatible.
    Type '() => string[]' is not assignable to type '<TValue>() => TValue'.
      Type 'string[]' is not assignable to type 'TValue'.
node_modules/vss-web-extension-sdk/typings/vss.d.ts(10224,14): error TS2417: Class static side 'typeof DialogO' incorrectly extends base class static side 'typeof AjaxPanelO'.
  Types of property 'create' are incompatible.
    Type '<T extends Dialog>(dialogType: new (options: any) => T, options?: any) => T' is not assignable to type '<TControl extends Control<any>, TOptions>(controlType: new (options: TOptions) => TContr
ol, conta...'.
      Types of parameters 'dialogType' and 'controlType' are incompatible.
        Type 'new (options: TOptions) => TControl' is not assignable to type 'new (options: any) => Dialog'.
          Type 'TControl' is not assignable to type 'Dialog'.
            Type 'Control<any>' is not assignable to type 'Dialog'.
              Property '_specifiedMaxWidth' is missing in type 'Control<any>'.
src/inspector/associatedItems.ts(40,149): error TS2345: Argument of type '(build: Build) => Promise<any[]>' is not assignable to parameter of type '(value: Build) => void | [Build, Change[], WorkItem[]]
'.
  Type 'Promise<any[]>' is not assignable to type 'void | [Build, Change[], WorkItem[]]'.
    Type 'Promise<any[]>' is not assignable to type '[Build, Change[], WorkItem[]]'.
      Property '0' is missing in type 'Promise<any[]>'.

How to use a connected service from a custom Azure Devops extension index.ts?

I've written a custom extension for Azure Devops which contains a custom Connected Service and Build task. I can use the Connected Service when configuring the task via the pipeline visual designer to select a service and then use that service to populate a picklist with data from my API.

However, how do I use the selected service when the task is executed. I need to access the service from the index.ts. The service tells me the endpoint and the API Key.

In the index.ts I can access the Guid of the service using something like the following code but can I use the Guid to get the service or it's details?

import tl = require('azure-pipelines-task-lib/task');
async function run() {
try {
const serviceString: string = tl.getInput('TestService', true);
if (serviceString == 'bad') {
tl.setResult(tl.TaskResult.Failed, 'Bad input was given');
return;
} ...

I've done lots of searching and reading (including the following articles) but haven't been able to find any examples.

https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops

https://docs.microsoft.com/en-us/azure/devops/extend/develop/service-endpoints?view=azure-devops

How to hook into the chart click event.

I am using the chart samples here to add a custom widget to TFS.
I would like to know:

  1. how to hook into the chart click event
  2. how to set the cursor property to pointer

Seems like TFS is using Highcharts as a 3rd party chart control library.
but using the configuration from the Highcharts online docs does not work.

 plotOptions: {
        series: {
            cursor: 'pointer',
            events: {
                click: function (event) {
                    alert("Hello World");
                }
            }
        }
    },

Any help is appreciated.

VSTS Extension Not Working Under Some Publishers

Hello,

I'm not sure if this is the right repo to submit the issue to, but I couldn't find any repo's dedicated solely to publishing VSTS extensions.

When I first started working on our extension, I made my own publisher, and so the current working version of the extension is under my publisher/personal name. Now that the extension is finished, others want to change the publisher field to the company name. I got access to a company-named publisher from the owner of our VSTS instances, recreated the extension with the new publisher name, published it, shared it, and downloaded it to our VSTS instance. However, when I go to any of the pages related to the extension, they never load. I don't get any error messages, the pages are just stuck loading and not doing anything.

I'm not sure if this is related but the publisher name I had to include in the vss-extension.json file and the name that appears in marketplace for the publisher are not the same.

Getting error while compiling Types Script

node_modules/@types/jquery/index.d.ts:6107:66 - error TS2344: Type '"timeout" | "onreadystatechange" | "responseType" | "withCredentials" | "msCaching"' does not satisfy the constraint '"open" | "abort" | "timeout" | "onreadystatechange" | "responseType" | "withCredentials" | "readyState" | "response" | "responseText" | "responseURL" | "responseXML" | "status" | ... 23 more ... | "nodeType"'.
Type '"msCaching"' is not assignable to type '"open" | "abort" | "timeout" | "onreadystatechange" | "responseType" | "withCredentials" | "readyState" | "response" | "responseText" | "responseURL" | "responseXML" | "status" | ... 23 more ... | "nodeType"'.

Include contribution ID in contribution-guide dialog

The dialog that appears nicely shows all the context properties (and the context structure), but the dialog also needs to show the target contribution ID so developers know what they need to target to have their contribution show up.

Is the contributions guide exhaustive?

Just wondering, is the contributions guide completely exhaustive? That is, are there extension points at all that are not mentioned in it, or will there ever be in the future? I'm wondering, because in a few places, the extension does not add anything to the menu. For example, I am wanting to extend the branch view to allow single-click application of standard policies for our enterprise, but the context menu for branches does not seem to have any extension point. Is this because none exists, or because it was just not include in the contributions guide? Is there any api method for definitively listing all of the possible targets for contribution?

cheers,
~Bill

Package failed to Restore

i have using AzureDevOps. I build my Project but some error is there. I attach screen short please find it.
vsts

fabrikam-build-extension can not add the template1 in build template

For this extension, it can add MyPlainTask1 and MyPlainTask2 successfully in build tasks. But it can't add the template My Custom Andriod Template into build template.

But If I use REST api to create the template (same code as template.json) it can add the template successful.

11

Consumer services

By any chance, are there sources available of the predefined consumer services that do ship with VSTS/TFS?

Custom query results toolbar action not work

I try add Extension contributions-guide. All buttons, hubs and panels work correctly, except Custom query results toolbar.
This contribution
{ "id": "showProperties_24", "type": "ms.vss-web.action", "description": "Shows the target properties for work item query results toolbar menu.", "targets": [ "ms.vss-work-web.work-item-query-results-toolbar-menu" ], "properties": { "text": "Custom query results toolbar menu", "title": "ms.vss-work-web.work-item-query-results-toolbar-menu (Custom query results toolbar action)", "icon": "images/show-properties.png", "group": "actions", "uri": "main.html", "registeredObjectId": "showProperties" } }

Can it redirect other origin in custom summary page

As the demo of 'build-results-enhancer', I wrote a custom summary page. And I redirected other origin by window.open or a.href, throw some error "Error: Failed to read the 'cookie' property from 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag."
Then I found iframe has the "sandox" attribute, and lacked of "allow-same-origin". So, Can I redreict by other way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.