Skip to content

Add UNITY_INCLUDE_CONFIG_H and path to it in c_cpp_properties.json #4710

Open
@dzid26

Description

@dzid26

What kind of issue is this?

  • Feature Request.

PlatformIO Version (platformio --version):
PlatformIO Core, version 6.1.9

Description of the problem

c_cpp_properties.json already has test related Unity path .pio/libdeps/Release/Unity/src",. I think it should also have the UNITY_INCLUDE_CONFIG_H and the include path definition.

I use unity_config.h to define some common top-level features:

#define UNITY_INCLUDE_PRINT_FORMATTED
#include "stm32f10x.h"
#endif

Because this is not linked by IntelliSense some functions in unit test are not resolved:
image

Or.
image
Of course, I can include everything in each test, but unity_config.h seems like a better central place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions