server+vsce: fix brew path coverage (TOOLCHAIN_SEGMENTS, fallback order)

This commit is contained in:
Mayuresh Kadu
2026-06-20 09:35:11 +01:00
parent 3d436d88e8
commit d781c302e2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -317,8 +317,8 @@ function resolveOpencodeCliPath(): string | null {
path.join(home, '.opencode', 'bin', 'opencode'),
path.join(home, '.bun', 'bin', 'opencode'),
path.join(home, '.local', 'bin', 'opencode'),
'/usr/local/bin/opencode',
'/opt/homebrew/bin/opencode',
'/usr/local/bin/opencode',
path.join(home, 'bin', 'opencode'),
];
@@ -12,6 +12,7 @@ const TOOLCHAIN_SEGMENTS = [
'/opt/pkg/',
'/opt/pmk/',
'/snap/',
'/usr/local/',
];
const TOOLCHAIN_BASENAMES = new Set([