From 3ca837b3d9303b2802c05d65e86228f90bb98aff Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 16 Jun 2022 16:34:00 -0700 Subject: [PATCH] set the cwd on the file api driver to match the other drivers (#2601) --- CHANGELOG.md | 4 ++++ src/drivers/cmakeFileApiDriver.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e530cda..dabdf9af5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/drivers/cmakeFileApiDriver.ts b/src/drivers/cmakeFileApiDriver.ts index f756227e5..1fb9a2754 100644 --- a/src/drivers/cmakeFileApiDriver.ts +++ b/src/drivers/cmakeFileApiDriver.ts @@ -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) {