@@ -219,7 +219,7 @@ export async function installTools(
219
219
if ( envForTools [ 'GOTOOLCHAIN' ] ) {
220
220
envMsg += `, GOTOOLCHAIN=${ envForTools [ 'GOTOOLCHAIN' ] } ` ;
221
221
}
222
- outputChannel . appendLine ( envMsg ) ;
222
+ outputChannel . info ( envMsg ) ;
223
223
224
224
let installingPath = '' ;
225
225
let installingMsg = `Installing ${ missing . length } ${ missing . length > 1 ? 'tools' : 'tool' } at ` ;
@@ -238,16 +238,16 @@ export async function installTools(
238
238
}
239
239
}
240
240
241
- outputChannel . appendLine ( installingMsg ) ;
241
+ outputChannel . info ( installingMsg ) ;
242
242
missing . forEach ( ( missingTool ) => {
243
243
let toolName = missingTool . name ;
244
244
if ( missingTool . version ) {
245
245
toolName += '@' + missingTool . version ;
246
246
}
247
- outputChannel . appendLine ( ' ' + toolName ) ;
247
+ outputChannel . info ( ' ' + toolName ) ;
248
248
} ) ;
249
249
250
- outputChannel . appendLine ( '' ) ; // Blank line for spacing.
250
+ outputChannel . info ( '' ) ; // Blank line for spacing.
251
251
252
252
const failures : { tool : ToolAtVersion ; reason : string } [ ] = [ ] ;
253
253
const tm = options ?. toolsManager ?? defaultToolsManager ;
@@ -287,18 +287,18 @@ export async function installTools(
287
287
}
288
288
289
289
// Report detailed information about any failures.
290
- outputChannel . appendLine ( '' ) ; // blank line for spacing
290
+ outputChannel . info ( '' ) ; // blank line for spacing
291
291
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. :)' ) ;
293
293
} else {
294
294
// Show the output channel on failures, even if the installation should
295
295
// be silent.
296
296
if ( silent ) {
297
297
outputChannel . show ( ) ;
298
298
}
299
- outputChannel . appendLine ( failures . length + ' tools failed to install.\n' ) ;
299
+ outputChannel . info ( failures . length + ' tools failed to install.\n' ) ;
300
300
for ( const failure of failures ) {
301
- outputChannel . appendLine ( `${ failure . tool . name } : ${ failure . reason } ` ) ;
301
+ outputChannel . info ( `${ failure . tool . name } : ${ failure . reason } ` ) ;
302
302
}
303
303
}
304
304
if ( missing . some ( ( tool ) => tool . isImportant ) ) {
@@ -354,10 +354,10 @@ async function installToolWithGo(
354
354
try {
355
355
await installToolWithGoInstall ( goVersionForInstall , env , importPath ) ;
356
356
const toolInstallPath = getBinPath ( tool . name ) ;
357
- outputChannel . appendLine ( `Installing ${ importPath } (${ toolInstallPath } ) SUCCEEDED` ) ;
357
+ outputChannel . info ( `Installing ${ importPath } (${ toolInstallPath } ) SUCCEEDED` ) ;
358
358
} 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 ) } ` ) ;
361
361
return `failed to install ${ tool . name } (${ importPath } ): ${ e } ` ;
362
362
}
363
363
}
@@ -545,7 +545,7 @@ export function updateGoVarsFromConfig(goCtx: GoExtensionContext): Promise<void>
545
545
{ env : env , cwd : cwd } ,
546
546
( err , stdout , stderr ) => {
547
547
if ( err ) {
548
- outputChannel . append (
548
+ outputChannel . info (
549
549
`Failed to run '${ goRuntimePath } env' (cwd: ${ getWorkspaceFolderPath ( ) } ): ${ err } \n${ stderr } `
550
550
) ;
551
551
outputChannel . show ( ) ;
@@ -558,7 +558,7 @@ export function updateGoVarsFromConfig(goCtx: GoExtensionContext): Promise<void>
558
558
if ( stderr ) {
559
559
// 'go env' may output warnings about potential misconfiguration.
560
560
// Show the messages to users but keep processing the stdout.
561
- outputChannel . append ( `'${ goRuntimePath } env': ${ stderr } ` ) ;
561
+ outputChannel . info ( `'${ goRuntimePath } env': ${ stderr } ` ) ;
562
562
outputChannel . show ( ) ;
563
563
}
564
564
outputChannel . trace ( `${ goRuntimePath } env ...:\n${ stdout } ` ) ;
@@ -623,7 +623,7 @@ export async function maybeInstallImportantTools(
623
623
missing = missing
624
624
. map ( ( tool ) => {
625
625
if ( alternateTools [ tool . name ] ) {
626
- outputChannel . appendLine (
626
+ outputChannel . info (
627
627
`skip installing ${
628
628
tool . name
629
629
} because the 'alternateTools' setting is configured to use ${
@@ -642,7 +642,7 @@ export async function maybeInstallImportantTools(
642
642
await updateImportantToolsStatus ( tm ) ;
643
643
}
644
644
} catch ( e ) {
645
- outputChannel . appendLine ( 'install missing tools failed - ' + JSON . stringify ( e ) ) ;
645
+ outputChannel . info ( 'install missing tools failed - ' + JSON . stringify ( e ) ) ;
646
646
} finally {
647
647
statusBarItem . busy = false ;
648
648
}
0 commit comments