Should browse.path contain source folders, or only header folders? #11033
-
I'm a developer on an extension that provides intellisense configurations via the TS API, and several users have reported issues with 'Go To Definition'. These users keep their header- and source files in separate folders, and our extension only adds the header folders to The documentation(1) describes 1: https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference#_browse-properties |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The docs at https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference#_browse-properties are incorrect/misleading. The browse.path is supposed to include any folders for which you would want to locate a global symbol via symbol search, go to definition, find all references, etc., so it should usually include source files too. |
Beta Was this translation helpful? Give feedback.
The docs at https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference#_browse-properties are incorrect/misleading.
The browse.path is supposed to include any folders for which you would want to locate a global symbol via symbol search, go to definition, find all references, etc., so it should usually include source files too.