microsoft / vscode-cmake-tools

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

Project Outline Does Not Show included cmake files #3848

Open inxksp opened 3 months ago

inxksp commented 3 months ago

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

v-frankwang commented 3 months ago

@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

ksrp1984 commented 2 months ago

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?

v-frankwang commented 2 months ago

@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?

gcampbell-msft commented 2 months ago

@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!

v-frankwang commented 2 months ago

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