microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.47k stars 454 forks source link

[CMake Cache Editor] add checkbox filters for "advanced" and internal cache variables #2676

Open david-fong opened 2 years ago

david-fong commented 2 years ago

Brief Issue Summary

CMake has a feature to mark cache variables as "advanced" (as in "for advanced/expert usage scenarios"). ccmake has a control to toggle showing advanced cache variables and hides them by default.

Cache variables can also be marked as "internal". cmake-gui never shows internal cache variables.

It would be a nice quality of life feature if the GUI editor in this extension also exhibited similar behaviours. Right now, it seems to always show everything.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

elahehrashedi commented 2 years ago

Thank you for this feature request. We may not get to this immediately, but we would accept a pull request from the community.

Gwani commented 1 year ago

Supporting this request. Our CMake-based meta build system makes heavy use of internal variables, creating several thousands of them to cache its internal state between CMake invocations, even for medium sized projects. Thats a lot of noise for users wishing to adjust the few public cache variables actually relevant to them.