Skip to content

Commit 3cc5ac1

Browse files
authored
Fix PlatformIO intellisense (#1616)
The `_idedata` has been changed to `__idedata` in newer PlatformIO core versions per platformio/platformio-core@158aabb. This change has broken the logic to expand out the `-iprefix PATH @INCLUDEFILE` argument into its individual include paths, causing Intellisense breakages on some VSCode systems and other IDEs that didn't handle these arguments correctly or in which the path was corrupted.
1 parent 4fd8e41 commit 3cc5ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/platformio-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
def is_pio_build():
5555
from SCons.Script import COMMAND_LINE_TARGETS
56-
return "idedata" not in COMMAND_LINE_TARGETS and "_idedata" not in COMMAND_LINE_TARGETS
56+
return all([x not in COMMAND_LINE_TARGETS for x in ["idedata", "_idedata", "__idedata"]])
5757

5858
# get all activated macros
5959
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])

0 commit comments

Comments
 (0)