File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -59,24 +59,37 @@ def generate(self):
59
59
continue
60
60
61
61
if directory == "." :
62
- all_directories .append ("${workspaceRoot }/*" )
62
+ all_directories .append ("${workspaceFolder }/*" )
63
63
else :
64
- all_directories .append (directory .replace ("./" , "${workspaceRoot }/" ) + "/*" )
64
+ all_directories .append (directory .replace ("./" , "${workspaceFolder }/" ) + "/*" )
65
65
66
66
cpp_props = {
67
67
"configurations" : [
68
68
{
69
69
"name" : "Windows" ,
70
- "includePath" : [x .replace ("/" , "\\ " ) for x in all_directories ],
70
+ "forcedInclude" : [
71
+ "${workspaceFolder}/mbed_config.h"
72
+ ],
73
+ "compilerPath" : self .toolchain .cppc [0 ],
74
+ "intelliSenseMode" : "gcc-x64" ,
75
+ "includePath" : all_directories ,
71
76
"defines" : [symbol for symbol in self .toolchain .get_symbols ()]
72
77
},
73
78
{
74
79
"name" : "Mac" ,
80
+ "forcedInclude" : [
81
+ "${workspaceFolder}/mbed_config.h"
82
+ ],
83
+ "compilerPath" : self .toolchain .cppc [0 ],
75
84
"includePath" : all_directories ,
76
85
"defines" : [symbol for symbol in self .toolchain .get_symbols ()]
77
86
},
78
87
{
79
88
"name" : "Linux" ,
89
+ "forcedInclude" : [
90
+ "${workspaceFolder}/mbed_config.h"
91
+ ],
92
+ "compilerPath" : self .toolchain .cppc [0 ],
80
93
"includePath" : all_directories ,
81
94
"defines" : [symbol for symbol in self .toolchain .get_symbols ()]
82
95
}
You can’t perform that action at this time.
0 commit comments