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
|
||||
|
||||
if directory == ".":
|
||||
all_directories.append("${workspaceRoot}/*")
|
||||
all_directories.append("${workspaceFolder}/*")
|
||||
else:
|
||||
all_directories.append(directory.replace("./", "${workspaceRoot}/") + "/*")
|
||||
all_directories.append(directory.replace("./", "${workspaceFolder}/") + "/*")
|
||||
|
||||
cpp_props = {
|
||||
"configurations": [
|
||||
{
|
||||
"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()]
|
||||
},
|
||||
{
|
||||
"name": "Mac",
|
||||
"forcedInclude": [
|
||||
"${workspaceFolder}/mbed_config.h"
|
||||
],
|
||||
"compilerPath": self.toolchain.cppc[0],
|
||||
"includePath": all_directories,
|
||||
"defines": [symbol for symbol in self.toolchain.get_symbols()]
|
||||
},
|
||||
{
|
||||
"name": "Linux",
|
||||
"forcedInclude": [
|
||||
"${workspaceFolder}/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