From 50ec9e48bfbc2774cfc8f03c09e7514462f09148 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 28 May 2017 02:34:32 +0300 Subject: [PATCH] Specify particular platform for c_cpp configuration --- .../ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl | 9 +++++++++ 1 file changed, 9 insertions(+) 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 d2de0f20..f5db535f 100644 --- a/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl +++ b/platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl @@ -1,6 +1,15 @@ { "configurations": [ { +% import platform +% systype = platform.system().lower() +% if systype == "windows": + "name": "Win32", +% elif systype == "darwin": + "name": "Mac", +% else: + "name": "Linux", +% end "includePath": [ % for include in includes: "{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",