File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,16 @@ export function makeCompilerParserContext(dc: DeviceContext): ICoCoPaContext {
93
93
ccp . CCppPropertiesCStandard . C11 ,
94
94
ccp . CCppPropertiesCppStandard . Cpp11 ,
95
95
forcedIncludes ) ;
96
+
97
+ // The following 4 lines are added to prevent null.d from being created in the workspace
98
+ // directory on MacOS and Linux. This is may be a bug in intelliSense
99
+ const mmdIndex = runner . result . options . findIndex ( ( element ) => element === "-MMD" ) ;
100
+ if ( mmdIndex ) {
101
+ runner . result . options . splice ( mmdIndex ) ;
102
+ }
103
+
96
104
try {
105
+
97
106
const cmd = os . platform ( ) === "darwin" ? "Cmd" : "Ctrl" ;
98
107
const help = `To manually rebuild your IntelliSense configuration run "${ cmd } +Alt+I"` ;
99
108
const pPath = path . join ( ArduinoWorkspace . rootPath , constants . CPP_CONFIG_FILE ) ;
You can’t perform that action at this time.
0 commit comments