Skip to content

Commit

Permalink
Add platform and isWsl logging in HtmlBeautifier
Browse files Browse the repository at this point in the history
  • Loading branch information
aliariff committed Feb 11, 2024
1 parent dd2effa commit 1742895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/formatter/htmlbeautifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default class HtmlBeautifier {
const useBundler = config.get("useBundler", false);
const bundlerPath = config.get("bundlerPath", "bundle");
const ext = process.platform === "win32" && !isWsl ? ".bat" : "";
console.log(`Platform: ${process.platform}, isWsl: ${isWsl}`);
return useBundler ? `${bundlerPath}${ext}` : `${executePath}${ext}`;
}

Expand Down

0 comments on commit 1742895

Please sign in to comment.