From 62053bfd477c968dcb0a35b9fb03cd80b77f19e2 Mon Sep 17 00:00:00 2001 From: David Hasani Date: Fri, 1 Nov 2024 12:13:31 -0700 Subject: [PATCH] move comment --- .../transformByQ/transformationResultsViewProvider.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts b/packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts index f3f174be3c7..ff0e674ec7f 100644 --- a/packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts +++ b/packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts @@ -408,6 +408,11 @@ export class ProposedTransformationExplorer { const metricsPath = path.join(pathContainingArchive, ExportResultArchiveStructure.PathToMetrics) const metricsData = JSON.parse(fs.readFileSync(metricsPath, 'utf8')) + console.log('locChanged = ', metricsData.linesOfCodeChanged) + console.log('charsChanged = ', metricsData.charsOfCodeChanged) + console.log('linesSubmitted = ', transformByQState.getLinesOfCodeSubmitted()) + + // TO-DO: add support for SQL conversions; right now these metrics are only available for Java upgrades await codeWhisperer.codeWhispererClient.sendTelemetryEvent({ telemetryEvent: { transformEvent: { @@ -415,7 +420,7 @@ export class ProposedTransformationExplorer { timestamp: new Date(), ideCategory: 'VSCODE', programmingLanguage: { - languageName: 'JAVA', // TO-DO: use transformByQState.getTransformationType() to tell if JAVA or SQL + languageName: 'JAVA', }, linesOfCodeChanged: metricsData.linesOfCodeChanged, charsOfCodeChanged: metricsData.charsOfCodeChanged,