Skip to content

Commit 23b48e9

Browse files
tomchenHerringtonDarkholme
authored andcommitted
fix: case‐insensitive check
1 parent b16b6ef commit 23b48e9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/extension/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export async function testBinaryExist(command: string) {
5353
['-h'],
5454
{
5555
// for windows
56-
shell: process.platform === 'win32' && !command.endsWith('.exe'),
56+
shell:
57+
process.platform === 'win32' &&
58+
!command.toLowerCase().endsWith('.exe'),
5759
cwd: uris[0],
5860
},
5961
err => {

src/extension/search.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export function buildCommand(query: SearchQuery) {
142142
// TODO: multi-workspaces support
143143
return spawn(normalizedCommand, args, {
144144
// for windows
145-
shell: process.platform === 'win32' && !command.endsWith('.exe'),
145+
shell:
146+
process.platform === 'win32' && !command.toLowerCase().endsWith('.exe'),
146147
cwd: uris[0],
147148
})
148149
}

0 commit comments

Comments
 (0)