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 doesn't show header files if grpc src (.cc) is added #3820

Open omarhatem97 opened 3 months ago

omarhatem97 commented 3 months ago

Brief Issue Summary

in cmakelist.txt when you want to add an executable you simple write add_executable(${PROJECT_NAME}_exe ${SOURCES} ${HEADERS} ) this will make sure that the project outline view will show the executable with the sources and header files

image

however ... if you try to add grpc source files ( filename.grpc.pb.cc) like so:

add_executable(${PROJECT_NAME}_exe ${SOURCES} ${HEADERS} ${GRPC_SRCS})

now the project outline removes any header file and create a new entry name build/proto-src

image

header files are shown properly in any other ide, so this has to be an issue, right ?

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Yingzi1234 commented 3 months ago

@omarhatem97 Thank you for your github issue! To better address your question, could you provide us with a copy of your reproduction video? Please feel free if you have any concern!