Change the sorting of the initial CMakeLists.txt from the default provided by the system to show top-level files first.
So, we go from this:
To this:
The purpose of this change
The motivation of this change is that usually the user wants to open the CMakeLists.txt that is the closest to the root of the repository and other files are just included via add_subdirectory in CMake.
This changes visible behavior
The following changes are proposed:
CMakeLists.txt
from the default provided by the system to show top-level files first.So, we go from this:![Screenshot 2024-05-23 103048](https://github.com/microsoft/vscode-cmake-tools/assets/6493651/72826545-c06e-4fd1-9553-1f4df8da9de0)
To this:![Screenshot 2024-05-23 103346](https://github.com/microsoft/vscode-cmake-tools/assets/6493651/7cbc29b3-9cdb-4955-8737-6718f23c518f)
The purpose of this change
The motivation of this change is that usually the user wants to open the CMakeLists.txt that is the closest to the root of the repository and other files are just included via
add_subdirectory
in CMake.