Skip to content

Commit e682807

Browse files
committed
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.
1 parent 3252530 commit e682807

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tools/export/vscode/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,29 @@ def generate(self):
6767
"configurations": [
6868
{
6969
"name": "Windows",
70+
"forcedInclude": [
71+
"${workspaceRoot}\\mbed_config.h"
72+
],
73+
"compilerPath": self.toolchain.cppc[0],
74+
"intelliSenseMode": "gcc-x64",
7075
"includePath": [x.replace("/", "\\") for x in all_directories],
7176
"defines": [symbol for symbol in self.toolchain.get_symbols()]
7277
},
7378
{
7479
"name": "Mac",
80+
"forcedInclude": [
81+
"${workspaceRoot}\\mbed_config.h"
82+
],
83+
"compilerPath": self.toolchain.cppc[0],
7584
"includePath": all_directories,
7685
"defines": [symbol for symbol in self.toolchain.get_symbols()]
7786
},
7887
{
7988
"name": "Linux",
89+
"forcedInclude": [
90+
"${workspaceRoot}\\mbed_config.h"
91+
],
92+
"compilerPath": self.toolchain.cppc[0],
8093
"includePath": all_directories,
8194
"defines": [symbol for symbol in self.toolchain.get_symbols()]
8295
}

0 commit comments

Comments
 (0)