Skip to content

Commit 514f7c3

Browse files
fix: add more descriptive naming
1 parent 0e42c8d commit 514f7c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/extension/common.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ export function resolveBinary() {
4040
}
4141

4242
export async function testBinaryExist(command: string) {
43-
const _command = /\s/.test(command.trim()) ? `"${command}"` : command
43+
// windows user may input space in command
44+
const normalizedCommand = /\s/.test(command.trim()) ? `"${command}"` : command
4445
const uris = workspace.workspaceFolders?.map(i => i.uri?.fsPath) ?? []
4546
return new Promise(r => {
4647
execFile(
47-
_command,
48+
normalizedCommand,
4849
['-h'],
4950
{
5051
// for windows

0 commit comments

Comments
 (0)