Перейти к файлу
Jeff King c460c2c25f
Update readme.
2022-10-07 16:06:01 -07:00
src 0.3.2: Update swc to 0.6.0-12. 2021-11-05 01:35:13 -07:00
.gitignore Add ignore folder. 2021-12-14 11:33:54 -08:00
jest.config.js Add test for build.getArtifactsFileEntries. 2021-06-16 18:25:53 -07:00
package.json 0.3.6: Update swc to 0.6.0-16. 2022-10-07 16:02:44 -07:00
readme.md Update readme. 2022-10-07 16:06:01 -07:00
tsconfig.json Add test for build.getArtifactsFileEntries. 2021-06-16 18:25:53 -07:00
vss-extension.dev.json Prep for public release. 2020-09-29 14:14:35 -07:00
vss-extension.json Prep for public release. 2020-09-29 14:14:35 -07:00
vss-extension.md Update overview. 2020-09-24 23:48:46 -07:00
vss-extension.png Update icon. 2020-09-24 23:22:37 -07:00
vss-extension.prod.json 0.3.6: Update swc to 0.6.0-16. 2022-10-07 16:02:44 -07:00
webpack.config.js Add definePlugin for instrumentationKey. 2021-06-17 02:41:01 -07:00

readme.md

SARIF SAST Scans Tab

See vss-extension.md for public facing info. This is for contributors/developers.

Development: DevOps Dev

  • npm run publish-dev
  • go to: https://dev.azure.com/jeffkingms/Project%20Zero/_workitems/edit/1/

Development: DevOps BaseUri

  • npm run publish-dev with baseUri
  • go to: https://localhost:8080 and bypass the chrome warning.
  • go to: https://dev.azure.com/jeffkingms/Project%20Zero/_workitems/edit/1/

Deployment

Verify vss-extension.prod.json property version is incremented. If not, you risk overriting an old vsix.

npx webpack
npx tfx extension create --output-path: vsix --overrides-file vss-extension.prod.json

This creates a file inyour ./vsix folder named sariftools.scans-0.1.0.vsix (version number will differ).

Upload the vsix file to https://marketplace.visualstudio.com/manage/publishers/YOUR_PUBLISHER_ID. On that page, find the matching extension, choose , and choose Update.

Remember to commit any vss-extension.json version changes.

New API

import('azure-devops-extension-sdk').init() results in "No handler found on any channel for message" and "Error: Cannot get registered instance for : JeffKingO.scans-dev.workitem-tab"

import * as SDK from 'azure-devops-extension-sdk'
import { IWorkItemFormService, WorkItemTrackingServiceIds } from 'azure-devops-extension-api/WorkItemTracking'

SDK.init({
	applyTheme: true,
	loaded: true,
})
;(async () => {
	await SDK.ready()
	console.info('Version', SDK.getExtensionContext().version)

	const workItem = await SDK.getService<IWorkItemFormService>(WorkItemTrackingServiceIds.WorkItemFormService)
	const relations = await workItem.getWorkItemRelations()
	console.log(relations)
})()