Skip to content

Commit

Permalink
set the cwd on the file api driver to match the other drivers (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbrow authored Jun 16, 2022
1 parent 9830fb0 commit 3ca837b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# What's New?

## 1.12
Bug Fixes:
- Set the working directory for the file api driver. [#2569](https://github.com/microsoft/vscode-cmake-tools/issues/2569)

## 1.11.26
- Revert back to the previous CMake language server extension dependency. [PR #2599](https://github.com/microsoft/vscode-cmake-tools/pull/2599)

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/cmakeFileApiDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class CMakeFileApiDriver extends CMakeDriver {
log.debug(`Configuring using ${this.useCMakePresets ? 'preset' : 'kit'}`);
log.debug('Invoking CMake', cmake, 'with arguments', JSON.stringify(args));
const env = await this.getConfigureEnvironment();
const res = await this.executeCommand(cmake, args, outputConsumer, { environment: env }).result;
const res = await this.executeCommand(cmake, args, outputConsumer, { environment: env, cwd: this.binaryDir }).result;
log.trace(res.stderr);
log.trace(res.stdout);
if (res.retc === 0) {
Expand Down

0 comments on commit 3ca837b

Please sign in to comment.