Brief Issue Summary
In our project we're using conan for managing thirdpartys. When I run the conan install command it will generate the following CMakeUserPreset.json file in the root directory:
{
"version": 4,
"vendor": {
"conan": {}
},
"include": [
"build/generated/CMakePresets.json"
]
}
Current behavior:
Project settings were generated in the included build/generated/CMakePresets.json If VS Code is open when the generated build/generated/CMakePresets.json file is changed it won't affect the CMake variables and settings used for configuration. Even if I use the Delete Cache / Reconfigure the CMake plugin will use the old "cached" settings. The only solution to make it work is to close and reopen VS Code.
Expected behavior:
The changes in the build/generated/CMakePresets.json is detected and a new configuration step is triggered with the new settings.
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.109.5",
"cmtVersion": "1.22.28",
"configurations": [
{
"folder": "c:\\work\\git\\temp_project.git",
"cmakeVersion": "3.31.2",
"configured": true,
"generator": "Visual Studio 17 2022",
"usesPresets": true,
"compilers": {}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "Debug",
"buildTypesSeen": [
"Debug",
"Release",
"MinSizeRel",
"RelWithDebInfo"
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 44,
"executablesCount": 2,
"librariesCount": 19,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
Debug Log
Can't share the debug output
Additional Information
No response
Brief Issue Summary
In our project we're using conan for managing thirdpartys. When I run the
conan installcommand it will generate the followingCMakeUserPreset.jsonfile in the root directory:Current behavior:
Project settings were generated in the included
build/generated/CMakePresets.jsonIf VS Code is open when the generatedbuild/generated/CMakePresets.jsonfile is changed it won't affect the CMake variables and settings used for configuration. Even if I use theDelete Cache / Reconfigurethe CMake plugin will use the old "cached" settings. The only solution to make it work is to close and reopen VS Code.Expected behavior:
The changes in the
build/generated/CMakePresets.jsonis detected and a new configuration step is triggered with the new settings.CMake Tools Diagnostics
{ "os": "win32", "vscodeVersion": "1.109.5", "cmtVersion": "1.22.28", "configurations": [ { "folder": "c:\\work\\git\\temp_project.git", "cmakeVersion": "3.31.2", "configured": true, "generator": "Visual Studio 17 2022", "usesPresets": true, "compilers": {} } ], "cpptoolsIntegration": { "isReady": true, "hasCodeModel": true, "activeBuildType": "Debug", "buildTypesSeen": [ "Debug", "Release", "MinSizeRel", "RelWithDebInfo" ], "requests": [], "responses": [], "partialMatches": [], "targetCount": 44, "executablesCount": 2, "librariesCount": 19, "targets": [] }, "settings": [ { "communicationMode": "automatic", "useCMakePresets": "auto", "configureOnOpen": true } ] }Debug Log
Can't share the debug outputAdditional Information
No response