Skip to content

Commit d8ebc91

Browse files
authored
Merge branch 'main' into seanmcm/fixCopilotHoverWarning
2 parents 4609efb + 3f9ca15 commit d8ebc91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Extension/src/common.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,10 @@ function extractArgs(argsString: string): string[] {
10681068
return result;
10691069
} else {
10701070
try {
1071-
const wordexpResult: any = child_process.execFileSync(getExtensionFilePath("bin/cpptools-wordexp"), [argsString], { shell: false });
1071+
const executablePath: string = getExtensionFilePath("bin/cpptools-wordexp");
1072+
const executableDir: string = path.dirname(executablePath);
1073+
process.chdir(executableDir);
1074+
const wordexpResult: any = child_process.execFileSync(executablePath, [argsString], { shell: false });
10721075
if (wordexpResult === undefined) {
10731076
return [];
10741077
}

0 commit comments

Comments
 (0)