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

project outline doesn't show header files if grpc src (.cc) is added

Open omarhatem97 opened this issue 1 year ago • 1 comments

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

omarhatem97 avatar Jun 09 '24 17:06 omarhatem97

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

Yingzi1234 avatar Jun 21 '24 09:06 Yingzi1234

@omarhatem97 Could you please provide a repro project?

gcampbell-msft avatar Dec 17 '24 19:12 gcampbell-msft