Fix IntelliSense in VSCode export

Allow to use default intelliSenseEngine in visual studio code.
Add of compilerPath and forcedInclude of mbed_config header in the
created c_cpp_properties.json file.
pull/9649/head
Nicolas Graziano 2019-02-09 19:23:56 +01:00
parent 3252530e3a
commit e682807bf5
1 changed files with 13 additions and 0 deletions

View File

@ -67,16 +67,29 @@ class VSCode(Makefile):
"configurations": [
{
"name": "Windows",
"forcedInclude": [
"${workspaceRoot}\\mbed_config.h"
],
"compilerPath": self.toolchain.cppc[0],
"intelliSenseMode": "gcc-x64",
"includePath": [x.replace("/", "\\") for x in all_directories],
"defines": [symbol for symbol in self.toolchain.get_symbols()]
},
{
"name": "Mac",
"forcedInclude": [
"${workspaceRoot}\\mbed_config.h"
],
"compilerPath": self.toolchain.cppc[0],
"includePath": all_directories,
"defines": [symbol for symbol in self.toolchain.get_symbols()]
},
{
"name": "Linux",
"forcedInclude": [
"${workspaceRoot}\\mbed_config.h"
],
"compilerPath": self.toolchain.cppc[0],
"includePath": all_directories,
"defines": [symbol for symbol in self.toolchain.get_symbols()]
}