microsoft / microsoft/vscode-cmake-tools

[Bug] CMake Tools continues to send IntelliSense configurations from the previous CMake Preset after switching to a different preset

Open
#4,774 3 comments 0 reactions 1 assignee Claimed by @hanniavalera View on GitHub
bug Feature: cpptools integration Feature: presets more info needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

1. Use CMake: Select Configure Preset to switch to a different preset.

Bug: CMake Tools continues to send IntelliSense configurations with the old preset info. The workaround is to reload window. I've debugged cpptools.ts function provideConfigurations to confirm it's a bug with CMake Tools and not the C/C++ extension. The build itself correctly is updated to use the new preset (the IntelliSense configuration is just wrong).

I sent more repro info via internal email.

This might be a duplicate of a pre-existing issue but I couldn't find it.

### CMake Tools Diagnostics

```shell
n/a
```

### Debug Log

```shell
n/a
```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.