vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Organize targets using the FOLDER property in the Project Outline window

Open MathiasMagnus opened this issue 7 years ago • 4 comments

First of all: I just LOVE the fact that the cpptools integration finally works! Awesome work guys!

Expected:

It would be nice if the FOLDER property of targets and source_groups belonging to targets displayed as if they were in logical folders (Filters in VS terms), just like in Big Brother VS.

Apparent Behavior:

All targets and source files are displayed in a flat structure.

MathiasMagnus avatar Jul 24 '18 12:07 MathiasMagnus

This is actually what I wanted to do with the outline originally, but I was disappointed to find that CMake Server doesn't give me the value of the FOLDER property, so I can't know where to put the targets/sources.

vector-of-bool avatar Jul 24 '18 18:07 vector-of-bool

+1 for a nice feature I would very much appreciate.

Apparently, CMake's file API is exposing information about the FOLDER target property (JSON object member folder) and the source_group CMake command (sourceGroupIndex and sourceGroups), so I guess this should be possible now.

vdilecce avatar Aug 15 '20 21:08 vdilecce

I'd like to support as well this feature request, now that it is feasible

ompadu avatar Nov 29 '20 20:11 ompadu

Quick update for everyone:

We are currently working on a design for some improvements to the Project Outline window, which will include support for using the FOLDER property. We hope to have this functionality ready for release in 1.18, but we will keep you updated.

gcampbell-msft avatar Jan 23 '24 19:01 gcampbell-msft