@@ -327,11 +327,11 @@ export class ArduinoApp {
327
327
} > } ;
328
328
const libPaths = this . getDefaultPackageLibPaths ( ) ;
329
329
const defaultForcedInclude = this . getDefaultForcedIncludeFiles ( ) ;
330
- const defines = this . getDefualtDefines ( ) ;
330
+ const defines = this . getDefaultDefines ( ) ;
331
331
const configuration = cppConfig . configurations [ 0 ] ;
332
332
333
333
let cppConfigFileUpdated = false ;
334
- // cpp exntension changes \\ to \\\\ in paths in JSON string, revert them first
334
+ // cpp extension changes \\ to \\\\ in paths in JSON string, revert them first
335
335
configuration . includePath = configuration . includePath . map ( ( path ) => path . replace ( / \\ \\ / g, "\\" ) ) ;
336
336
configuration . forcedInclude = configuration . forcedInclude . map ( ( path ) => path . replace ( / \\ \\ / g, "\\" ) ) ;
337
337
configuration . defines = configuration . defines . map ( ( path ) => path . replace ( / \\ \\ / g, "\\" ) ) ;
@@ -398,7 +398,7 @@ export class ArduinoApp {
398
398
}
399
399
400
400
const defaultForcedInclude = this . getDefaultForcedIncludeFiles ( ) ;
401
- const defaultDefines = this . getDefualtDefines ( ) ;
401
+ const defaultDefines = this . getDefaultDefines ( ) ;
402
402
403
403
if ( ! ArduinoWorkspace . rootPath ) {
404
404
return ;
@@ -635,8 +635,9 @@ Please make sure the folder is not occupied by other procedures .`);
635
635
return result ;
636
636
}
637
637
638
- public getDefualtDefines ( ) : string [ ] {
638
+ public getDefaultDefines ( ) : string [ ] {
639
639
const result = [ ] ;
640
+ // USBCON is required in order for Serial to be recognized by intellisense
640
641
result . push ( "USBCON" ) ;
641
642
return result ;
642
643
}
0 commit comments