diff --git a/packages/metals-languageclient/src/getJavaHome.ts b/packages/metals-languageclient/src/getJavaHome.ts index 35a804ae..bd133c97 100644 --- a/packages/metals-languageclient/src/getJavaHome.ts +++ b/packages/metals-languageclient/src/getJavaHome.ts @@ -37,7 +37,6 @@ async function validateJavaVersion( }); javaVersionOut.stderr?.on("data", (out: Buffer) => { - outputChannel.appendLine(`${javaBin} -version:`); const msg = "\t" + out.toString().trim().split("\n").join("\n\t"); outputChannel.appendLine(msg); }); diff --git a/packages/metals-languageclient/src/setupCoursier.ts b/packages/metals-languageclient/src/setupCoursier.ts index 953803a2..2523d180 100644 --- a/packages/metals-languageclient/src/setupCoursier.ts +++ b/packages/metals-languageclient/src/setupCoursier.ts @@ -22,8 +22,8 @@ export async function setupCoursier( output: OutputChannel ): Promise<{ coursier: string; javaHome: string }> { const handleOutput = (out: Buffer) => { - const msg = out.toString().trim(); - output.appendLine("Coursier: \n" + msg); + const msg = "\t" + out.toString().trim().split("\n").join("\n\t"); + output.appendLine(msg); }; const resolveCoursier = async () => { @@ -82,7 +82,7 @@ export async function setupCoursier( if (!javaHome && coursier) { output.appendLine( - `No installed java with version ${javaVersion} found. Will fetch one using coursier.` + `No installed java with version ${javaVersion} found. Will fetch one using coursier:` ); javaHome = await resolveJavaHomeWithCoursier(coursier); }