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 c617c38 commit 3f9ca15Copy full SHA for 3f9ca15
Extension/src/common.ts
@@ -1068,7 +1068,10 @@ function extractArgs(argsString: string): string[] {
1068
return result;
1069
} else {
1070
try {
1071
- const wordexpResult: any = child_process.execFileSync(getExtensionFilePath("bin/cpptools-wordexp"), [argsString], { shell: false });
+ 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 });
1075
if (wordexpResult === undefined) {
1076
return [];
1077
}
0 commit comments