mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
3252530e3a
commit
e682807bf5
|
@ -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()]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue