Skip to content

Commit f35c8d0

Browse files
author
David Hasani
committed
don't show logs for sql conversions
1 parent 91abf26 commit f35c8d0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as os from 'os'
99
import xml2js = require('xml2js')
1010
import * as CodeWhispererConstants from '../../models/constants'
1111
import { existsSync, readFileSync, writeFileSync } from 'fs' // eslint-disable-line no-restricted-imports
12-
import { BuildSystem, DB, FolderInfo, transformByQState } from '../../models/model'
12+
import { BuildSystem, DB, FolderInfo, TransformationType, transformByQState } from '../../models/model'
1313
import { IManifestFile } from '../../../amazonqFeatureDev/models'
1414
import fs from '../../../shared/fs/fs'
1515
import globals from '../../../shared/extensionGlobals'
@@ -31,7 +31,10 @@ export async function writeAndShowBuildLogs(isLocalInstall: boolean = false) {
3131
const logFilePath = path.join(os.tmpdir(), 'build-logs.txt')
3232
writeFileSync(logFilePath, transformByQState.getBuildLog())
3333
const doc = await vscode.workspace.openTextDocument(logFilePath)
34-
if (!transformByQState.getBuildLog().includes('clean install succeeded')) {
34+
if (
35+
!transformByQState.getBuildLog().includes('clean install succeeded') &&
36+
transformByQState.getTransformationType() !== TransformationType.SQL_CONVERSION
37+
) {
3538
// only show the log if the build failed; show it in second column for intermediate builds only
3639
const options = isLocalInstall ? undefined : { viewColumn: vscode.ViewColumn.Two }
3740
await vscode.window.showTextDocument(doc, options)

0 commit comments

Comments
 (0)