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

Project Outline Does Not Show included cmake files

Open inxksp opened this issue 1 year ago • 5 comments

Brief Issue Summary

I’m using direct CMake support from VS. But the included cmake files are not shown. Is implementation planned?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

My simple project: image

“included.cmake” not showing: image

Сorrect example: QtCreator displays and collects cmake files into a separate tree - in my opinion a very good solution: image

inxksp avatar Jun 25 '24 07:06 inxksp

@gcampbell-msft I can reproduce the problem mentioned by the user, my search results inside the project outline support to display the file inside the file does not end with .cmake, is it project outline will not display the suffix for .cmake? if so this problem is a Feature Request.

Actual result: image

v-frankwang avatar Jun 28 '24 09:06 v-frankwang

The cmake file-api reply contains all the needed files: image

But for some reason the VS ignores them. It looks like VS only understands CMakeLists.txt. Is there a way to add a mask for these files?

ksrp1984 avatar Jul 21 '24 07:07 ksrp1984

@gcampbell-msft Users would like to know if there is a way to add masks to files other than CMakelists.txt, such as files with a .cmake extension, so that they can be displayed in the project outline. Can this be accomplished?

v-frankwang avatar Jul 22 '24 06:07 v-frankwang

@v-frankwang @inxksp Thanks for the request. We don't currently include these files in the Project Outline, but we are happy to consider this as a feature request and put this on our backlog. Thanks!

gcampbell-msft avatar Jul 26 '24 12:07 gcampbell-msft

@gcampbell-msft Okay, I got it. Thank you very much for your reply.

v-frankwang avatar Jul 29 '24 01:07 v-frankwang