We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e42c8d commit 514f7c3Copy full SHA for 514f7c3
src/extension/common.ts
@@ -40,11 +40,12 @@ export function resolveBinary() {
40
}
41
42
export async function testBinaryExist(command: string) {
43
- const _command = /\s/.test(command.trim()) ? `"${command}"` : command
+ // windows user may input space in command
44
+ const normalizedCommand = /\s/.test(command.trim()) ? `"${command}"` : command
45
const uris = workspace.workspaceFolders?.map(i => i.uri?.fsPath) ?? []
46
return new Promise(r => {
47
execFile(
- _command,
48
+ normalizedCommand,
49
['-h'],
50
{
51
// for windows
0 commit comments