Skip to content

Commit d34f8fd

Browse files
committed
Export ProgramData environment variable to cquery.
This is required for automatic system include directory resolution.
1 parent 0b56beb commit d34f8fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ export function activate(context: ExtensionContext) {
216216
clientConfig['clientVersion'] = VERSION
217217
let args = ['--language-server'].concat(clientConfig['launchArgs']);
218218

219-
let env: any = {};
219+
let env: any = {
220+
'ProgramData': process.env['ProgramData'],
221+
};
220222
// env.LIBCLANG_LOGGING = '1';
221223
// env.MALLOC_CHECK_ = '2';
222224

0 commit comments

Comments
 (0)