Skip to content

Commit

Permalink
Disabling missing icon telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed May 21, 2020
1 parent 6d0f300 commit 371da02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "armview",
"displayName": "ARM Template Viewer",
"description": "Graphically display ARM templates in an interactive map view",
"version": "0.4.1",
"version": "0.4.2",
"icon": "assets/img/icons/main.png",
"publisher": "bencoleman",
"author": {
Expand Down
11 changes: 6 additions & 5 deletions src/lib/arm-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ export default class ARMParser {
hash = utils.hashCode(this.editor.document.fileName)
}
// Send resource type, FQN and a hashed/obscured version of the filename
if (this.reporter) {
this.reporter.sendTelemetryEvent('missingIcon', {
fileHash: hash, resourceFQN: res.fqn, resourceType: res.type,
})
}
// !!! TODO #24 - Disabled temporarily - while I investigate bug with vscode-extension-telemetry
// if (this.reporter) {
// this.reporter.sendTelemetryEvent('missingIcon', {
// fileHash: hash, resourceFQN: res.fqn, resourceType: res.type,
// })
// }

// Use default icon as nothing else found
img = 'default.svg'
Expand Down

0 comments on commit 371da02

Please sign in to comment.