forked from platformio/platformio-core
Fixed an issue with VSCode IntelliSense warning about the missed headers located in "include" folder
This commit is contained in:
@@ -7,6 +7,7 @@ PlatformIO 3.0
|
|||||||
3.6.2 (2018-??-??)
|
3.6.2 (2018-??-??)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Fixed an issue with VSCode IntelliSense warning about the missed headers located in `include <http://docs.platformio.org/page/projectconf/section_platformio.html#include-dir>`__ folder
|
||||||
* Fixed incorrect wording when initializing/updating project
|
* Fixed incorrect wording when initializing/updating project
|
||||||
|
|
||||||
3.6.1 (2018-10-29)
|
3.6.1 (2018-10-29)
|
||||||
|
@@ -25,7 +25,7 @@ from platformio.managers.core import get_core_package_dir
|
|||||||
|
|
||||||
|
|
||||||
def _dump_includes(env):
|
def _dump_includes(env):
|
||||||
includes = [env.subst("$PROJECTINCLUDE_DIR"), env.subst("$PROJECTSRC_DIR")]
|
includes = []
|
||||||
|
|
||||||
for item in env.get("CPPPATH", []):
|
for item in env.get("CPPPATH", []):
|
||||||
includes.append(env.subst(item))
|
includes.append(env.subst(item))
|
||||||
@@ -53,6 +53,9 @@ def _dump_includes(env):
|
|||||||
if unity_dir:
|
if unity_dir:
|
||||||
includes.append(unity_dir)
|
includes.append(unity_dir)
|
||||||
|
|
||||||
|
includes.extend(
|
||||||
|
env.subst("$PROJECTINCLUDE_DIR"), env.subst("$PROJECTSRC_DIR"))
|
||||||
|
|
||||||
# remove duplicates
|
# remove duplicates
|
||||||
result = []
|
result = []
|
||||||
for item in includes:
|
for item in includes:
|
||||||
|
Reference in New Issue
Block a user