Skip to content

Commit

Permalink
fix the issue (#4111)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft authored Oct 10, 2024
1 parent 0786aa8 commit caca06d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Features:

Improvements:

- Fix "Unable to resolve configuration with compilerPath" issue for Swift. [#4097](https://github.com/microsoft/vscode-cmake-tools/issues/4097)
- Ensure that any uses of `proc.spawn` work, especially for .bat and .cmd files, due to VS Code updating to Node 20. [#4037](https://github.com/microsoft/vscode-cmake-tools/issues/4037)

Bug Fixes:
Expand Down
2 changes: 1 addition & 1 deletion src/cpptools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class CppConfigurationProvider implements cpptools.CustomConfigurationPro
// For CppTools V6 and above, build the compilerFragments data, otherwise build compilerArgs data
const useFragments: boolean = this.cpptoolsVersion >= cpptools.Version.v6;
// If the file didn't have a language, default to C++
const lang = fileGroup.language === "RC" ? undefined : fileGroup.language;
const lang = fileGroup.language === "RC" || fileGroup.language === "Swift" ? undefined : fileGroup.language;
// First try to get toolchain values directly reported by CMake. Check the
// group's language compiler, then the C++ compiler, then the C compiler.
let compilerToolchains: CodeModelToolchain | undefined;
Expand Down

0 comments on commit caca06d

Please sign in to comment.