@@ -9,7 +9,7 @@ import * as os from 'os'
99import xml2js = require( 'xml2js' )
1010import * as CodeWhispererConstants from '../../models/constants'
1111import { 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'
1313import { IManifestFile } from '../../../amazonqFeatureDev/models'
1414import fs from '../../../shared/fs/fs'
1515import 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