@@ -219,7 +219,7 @@ export async function installTools(
219219 if ( envForTools [ 'GOTOOLCHAIN' ] ) {
220220 envMsg += `, GOTOOLCHAIN=${ envForTools [ 'GOTOOLCHAIN' ] } ` ;
221221 }
222- outputChannel . appendLine ( envMsg ) ;
222+ outputChannel . info ( envMsg ) ;
223223
224224 let installingPath = '' ;
225225 let installingMsg = `Installing ${ missing . length } ${ missing . length > 1 ? 'tools' : 'tool' } at ` ;
@@ -238,16 +238,16 @@ export async function installTools(
238238 }
239239 }
240240
241- outputChannel . appendLine ( installingMsg ) ;
241+ outputChannel . info ( installingMsg ) ;
242242 missing . forEach ( ( missingTool ) => {
243243 let toolName = missingTool . name ;
244244 if ( missingTool . version ) {
245245 toolName += '@' + missingTool . version ;
246246 }
247- outputChannel . appendLine ( ' ' + toolName ) ;
247+ outputChannel . info ( ' ' + toolName ) ;
248248 } ) ;
249249
250- outputChannel . appendLine ( '' ) ; // Blank line for spacing.
250+ outputChannel . info ( '' ) ; // Blank line for spacing.
251251
252252 const failures : { tool : ToolAtVersion ; reason : string } [ ] = [ ] ;
253253 const tm = options ?. toolsManager ?? defaultToolsManager ;
@@ -287,18 +287,18 @@ export async function installTools(
287287 }
288288
289289 // Report detailed information about any failures.
290- outputChannel . appendLine ( '' ) ; // blank line for spacing
290+ outputChannel . info ( '' ) ; // blank line for spacing
291291 if ( failures . length === 0 ) {
292- outputChannel . appendLine ( 'All tools successfully installed. You are ready to Go. :)' ) ;
292+ outputChannel . info ( 'All tools successfully installed. You are ready to Go. :)' ) ;
293293 } else {
294294 // Show the output channel on failures, even if the installation should
295295 // be silent.
296296 if ( silent ) {
297297 outputChannel . show ( ) ;
298298 }
299- outputChannel . appendLine ( failures . length + ' tools failed to install.\n' ) ;
299+ outputChannel . info ( failures . length + ' tools failed to install.\n' ) ;
300300 for ( const failure of failures ) {
301- outputChannel . appendLine ( `${ failure . tool . name } : ${ failure . reason } ` ) ;
301+ outputChannel . info ( `${ failure . tool . name } : ${ failure . reason } ` ) ;
302302 }
303303 }
304304 if ( missing . some ( ( tool ) => tool . isImportant ) ) {
@@ -354,10 +354,10 @@ async function installToolWithGo(
354354 try {
355355 await installToolWithGoInstall ( goVersionForInstall , env , importPath ) ;
356356 const toolInstallPath = getBinPath ( tool . name ) ;
357- outputChannel . appendLine ( `Installing ${ importPath } (${ toolInstallPath } ) SUCCEEDED` ) ;
357+ outputChannel . info ( `Installing ${ importPath } (${ toolInstallPath } ) SUCCEEDED` ) ;
358358 } catch ( e ) {
359- outputChannel . appendLine ( `Installing ${ importPath } FAILED` ) ;
360- outputChannel . appendLine ( `${ JSON . stringify ( e , null , 1 ) } ` ) ;
359+ outputChannel . info ( `Installing ${ importPath } FAILED` ) ;
360+ outputChannel . info ( `${ JSON . stringify ( e , null , 1 ) } ` ) ;
361361 return `failed to install ${ tool . name } (${ importPath } ): ${ e } ` ;
362362 }
363363}
@@ -545,7 +545,7 @@ export function updateGoVarsFromConfig(goCtx: GoExtensionContext): Promise<void>
545545 { env : env , cwd : cwd } ,
546546 ( err , stdout , stderr ) => {
547547 if ( err ) {
548- outputChannel . append (
548+ outputChannel . info (
549549 `Failed to run '${ goRuntimePath } env' (cwd: ${ getWorkspaceFolderPath ( ) } ): ${ err } \n${ stderr } `
550550 ) ;
551551 outputChannel . show ( ) ;
@@ -558,7 +558,7 @@ export function updateGoVarsFromConfig(goCtx: GoExtensionContext): Promise<void>
558558 if ( stderr ) {
559559 // 'go env' may output warnings about potential misconfiguration.
560560 // Show the messages to users but keep processing the stdout.
561- outputChannel . append ( `'${ goRuntimePath } env': ${ stderr } ` ) ;
561+ outputChannel . info ( `'${ goRuntimePath } env': ${ stderr } ` ) ;
562562 outputChannel . show ( ) ;
563563 }
564564 outputChannel . trace ( `${ goRuntimePath } env ...:\n${ stdout } ` ) ;
@@ -623,7 +623,7 @@ export async function maybeInstallImportantTools(
623623 missing = missing
624624 . map ( ( tool ) => {
625625 if ( alternateTools [ tool . name ] ) {
626- outputChannel . appendLine (
626+ outputChannel . info (
627627 `skip installing ${
628628 tool . name
629629 } because the 'alternateTools' setting is configured to use ${
@@ -642,7 +642,7 @@ export async function maybeInstallImportantTools(
642642 await updateImportantToolsStatus ( tm ) ;
643643 }
644644 } catch ( e ) {
645- outputChannel . appendLine ( 'install missing tools failed - ' + JSON . stringify ( e ) ) ;
645+ outputChannel . info ( 'install missing tools failed - ' + JSON . stringify ( e ) ) ;
646646 } finally {
647647 statusBarItem . busy = false ;
648648 }
0 commit comments