mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9649 from ngraziano/fix-vscode-export
Fix IntelliSense in VSCode exportpull/9745/head
commit
5a8970a48b
|
@ -59,24 +59,37 @@ class VSCode(Makefile):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if directory == ".":
|
if directory == ".":
|
||||||
all_directories.append("${workspaceRoot}/*")
|
all_directories.append("${workspaceFolder}/*")
|
||||||
else:
|
else:
|
||||||
all_directories.append(directory.replace("./", "${workspaceRoot}/") + "/*")
|
all_directories.append(directory.replace("./", "${workspaceFolder}/") + "/*")
|
||||||
|
|
||||||
cpp_props = {
|
cpp_props = {
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Windows",
|
"name": "Windows",
|
||||||
"includePath": [x.replace("/", "\\") for x in all_directories],
|
"forcedInclude": [
|
||||||
|
"${workspaceFolder}/mbed_config.h"
|
||||||
|
],
|
||||||
|
"compilerPath": self.toolchain.cppc[0],
|
||||||
|
"intelliSenseMode": "gcc-x64",
|
||||||
|
"includePath": all_directories,
|
||||||
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Mac",
|
"name": "Mac",
|
||||||
|
"forcedInclude": [
|
||||||
|
"${workspaceFolder}/mbed_config.h"
|
||||||
|
],
|
||||||
|
"compilerPath": self.toolchain.cppc[0],
|
||||||
"includePath": all_directories,
|
"includePath": all_directories,
|
||||||
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Linux",
|
"name": "Linux",
|
||||||
|
"forcedInclude": [
|
||||||
|
"${workspaceFolder}/mbed_config.h"
|
||||||
|
],
|
||||||
|
"compilerPath": self.toolchain.cppc[0],
|
||||||
"includePath": all_directories,
|
"includePath": all_directories,
|
||||||
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue