Skip to content

Commit 974e7eb

Browse files
author
David Hasani
committed
move comment
1 parent 0554f23 commit 974e7eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,19 @@ export class ProposedTransformationExplorer {
408408
const metricsPath = path.join(pathContainingArchive, ExportResultArchiveStructure.PathToMetrics)
409409
const metricsData = JSON.parse(fs.readFileSync(metricsPath, 'utf8'))
410410

411+
console.log('locChanged = ', metricsData.linesOfCodeChanged)
412+
console.log('charsChanged = ', metricsData.charsOfCodeChanged)
413+
console.log('linesSubmitted = ', transformByQState.getLinesOfCodeSubmitted())
414+
415+
// TO-DO: add support for SQL conversions; right now these metrics are only available for Java upgrades
411416
await codeWhisperer.codeWhispererClient.sendTelemetryEvent({
412417
telemetryEvent: {
413418
transformEvent: {
414419
jobId: transformByQState.getJobId(),
415420
timestamp: new Date(),
416421
ideCategory: 'VSCODE',
417422
programmingLanguage: {
418-
languageName: 'JAVA', // TO-DO: use transformByQState.getTransformationType() to tell if JAVA or SQL
423+
languageName: 'JAVA',
419424
},
420425
linesOfCodeChanged: metricsData.linesOfCodeChanged,
421426
charsOfCodeChanged: metricsData.charsOfCodeChanged,

0 commit comments

Comments
 (0)