Merge pull request #4850 from janjongboom/vscode_defines

Add list of defines to vscode exporter
pull/4935/head
Jimmy Brisson 2017-08-14 11:39:44 -05:00 committed by GitHub
commit b1d3669f3a
1 changed files with 6 additions and 3 deletions

View File

@ -63,15 +63,18 @@ class VSCode(Makefile):
"configurations": [
{
"name": "Windows",
"includePath": [x.replace("/", "\\") for x in all_directories]
"includePath": [x.replace("/", "\\") for x in all_directories],
"defines": [symbol for symbol in self.toolchain.get_symbols()]
},
{
"name": "Mac",
"includePath": all_directories
"includePath": all_directories,
"defines": [symbol for symbol in self.toolchain.get_symbols()]
},
{
"name": "Linux",
"includePath": all_directories
"includePath": all_directories,
"defines": [symbol for symbol in self.toolchain.get_symbols()]
}
]
}