Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions files-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this extension will be documented in this file.

## [Unreleased]

### Fixed
- Use `where` instead of `which` on Windows to detect `bat`, `delta`, and `glow`, so the dependency check works when running from PowerShell or cmd.exe.

## [0.1.21] - 2026-05-07

### Changed
Expand Down
3 changes: 2 additions & 1 deletion files-widget/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { execSync } from "node:child_process";

export function hasCommand(cmd: string): boolean {
try {
execSync(`which ${cmd}`, { stdio: "ignore" });
const checkCmd = process.platform === "win32" ? "where" : "which";
execSync(`${checkCmd} ${cmd}`, { stdio: "ignore" });
return true;
} catch {
return false;
Expand Down