From 8ffe4861bf3881ee5d8961a9be36c7904740347c Mon Sep 17 00:00:00 2001 From: Ali Ariff Date: Sat, 31 Aug 2024 15:47:23 +0200 Subject: [PATCH] refactor: Simplify HtmlBeautifier command execution --- src/formatter/htmlbeautifier.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/formatter/htmlbeautifier.ts b/src/formatter/htmlbeautifier.ts index c8ca31b..21ae10c 100644 --- a/src/formatter/htmlbeautifier.ts +++ b/src/formatter/htmlbeautifier.ts @@ -42,9 +42,9 @@ export default class HtmlBeautifier { ...shellOptions, }); - const fullCommand = `${this.exe} ${this.cliOptions.join(" ")} (cwd: ${ - vscode.workspace.rootPath || __dirname - }) with custom env: ${JSON.stringify(this.customEnvVars)}`; + const fullCommand = `${this.exe} ${this.cliOptions.join( + " " + )} with custom env: ${JSON.stringify(this.customEnvVars)}`; this.logChannel.info(`Formatting ERB with command: ${fullCommand}`); if (!htmlbeautifier.stdin || !htmlbeautifier.stdout) {