From c1906714ee39b2c22da67041d1c33050e1dd0ac0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 14 Nov 2020 20:10:22 +0200 Subject: [PATCH] Give a constant "PlatformIO" name for the C/C++ configuration --- .../vscode/.vscode/c_cpp_properties.json.tpl | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl b/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl index 806e5bc9..ac525e56 100644 --- a/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl +++ b/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl @@ -83,20 +83,15 @@ % forced_includes = _find_forced_includes( % filter_args(cc_m_flags, ["-include", "-imacros"]), cleaned_includes) % +// +// !!! WARNING !!! AUTO-GENERATED FILE! +// PLEASE DO NOT MODIFY IT AND USE "platformio.ini": +// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags +// { "configurations": [ { - "name": "!!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags" - }, - { -% if systype == "windows": - "name": "Win32", -% elif systype == "darwin": - "name": "Mac", - "macFrameworkPath": [], -% else: - "name": "Linux", -% end + "name": "PlatformIO", "includePath": [ % for include in cleaned_includes: "{{ include }}",