Skip to content

Commit

Permalink
fix: attempt...
Browse files Browse the repository at this point in the history
  • Loading branch information
schottsfired committed Dec 13, 2024
1 parent 9dec045 commit 0becc03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 4 additions & 0 deletions ui/enhancer/snyk-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export class SnykReportTab extends Controls.BaseControl {
const sharedConfig: TFSBuildExtensionContracts.IBuildResultsViewExtensionConfig =
VSS.getConfiguration();
const vsoContext = VSS.getWebContext();

// Notify that initialization is complete
VSS.notifyLoadSucceeded();

if (sharedConfig) {
// register your extension with host through callback
sharedConfig.onBuildChanged((build: TFSBuildContracts.Build) => {
Expand Down
11 changes: 1 addition & 10 deletions ui/snyk-report-tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,16 @@
<script type="text/javascript">
VSS.init({
explicitNotifyLoaded: true,
usePlatformScripts: true,
usePlatformStyles: true,
moduleLoaderConfig: {
paths: {
enhancer: 'scripts',
},
},
});

VSS.ready(function () {
VSS.require(['scripts/snyk-report'], function () {});
VSS.require(['enhancer/snyk-report'], function () {});
});
</script>
</head>

<body>
<script type="text/javascript">
VSS.init();
</script>
<h2>Reports:</h2>
<ul id="reportList" class="list"></ul>
<div class="iframeContainer">
Expand Down

0 comments on commit 0becc03

Please sign in to comment.