Concern about how Qt VS Tools handles entries in CMakePresets.json and CMakeUserPresets.json
-
I raised a bug report https://bugreports.qt.io/browse/QTVSADDINBUG-1317 that any changes I made to CMakePresets.json were wiped out by Qt VS Tools the next time I restarted Visual Studio.
This was marked as a duplicate of another problem report that was effectively closed "working as designed".
It makes it a more difficult to use, and requires that I replicate the same stuff many times.
I am certain that with some thought this could be handled so that user changes to this and CMakeUserPresets.json (which also has entries that are overwritten by VS Tools if they are changed) can be accommodated without the need to trample on what the user has done.
On a related issue, It's arguable that most of the entries that VS Tools places in CMakeUserPresets.json really belong in CMakePresets.json. Why? The former is a per user file that isn't intended to be checked into a version control system, unlike CMakePresets.json which is intended for project scope and should be checked into the VCS. The way that VS Tools currently works, I need to check both files into the VCS.