@@ -317,6 +317,8 @@ export class ArduinoApp {
317
317
return success ;
318
318
}
319
319
320
+ // IS-REMOVE: to be removed completely when IntelliSense implementation is merged
321
+ /*
320
322
public tryToUpdateIncludePaths() {
321
323
const configFilePath = path.join(ArduinoWorkspace.rootPath, constants.CPP_CONFIG_FILE);
322
324
if (!fs.existsSync(configFilePath)) {
@@ -358,6 +360,7 @@ export class ArduinoApp {
358
360
configuration.defines.push(define);
359
361
}
360
362
}
363
+ */
361
364
// remove all unexisting paths
362
365
// concern mistake removal, comment temporary
363
366
// for (let pathIndex = 0; pathIndex < configuration.includePath.length; pathIndex++) {
@@ -385,12 +388,15 @@ export class ArduinoApp {
385
388
// pathIndex--;
386
389
// }
387
390
// }
388
-
391
+ /*
389
392
if (cppConfigFileUpdated) {
390
393
fs.writeFileSync(configFilePath, JSON.stringify(cppConfig, null, 4));
391
394
}
392
395
}
396
+ */
393
397
398
+ // IS-REMOVE: to be removed completely when IntelliSense implementation is merged
399
+ /*
394
400
// Add selected library path to the intellisense search path.
395
401
public addLibPath(libraryPath: string) {
396
402
let libPaths;
@@ -466,7 +472,7 @@ export class ArduinoApp {
466
472
467
473
fs.writeFileSync(configFilePath, JSON.stringify(deviceContext, null, 4));
468
474
}
469
-
475
+ */
470
476
// Include the *.h header files from selected library to the arduino sketch.
471
477
public async includeLibrary ( libraryPath : string ) {
472
478
if ( ! ArduinoWorkspace . rootPath ) {
@@ -610,6 +616,8 @@ export class ArduinoApp {
610
616
arduinoChannel . end ( `Removed library - ${ libName } ${ os . EOL } ` ) ;
611
617
}
612
618
619
+ // IS-REMOVE: to be removed completely when IntelliSense implementation is merged
620
+ /*
613
621
public getDefaultPackageLibPaths(): string[] {
614
622
const result = [];
615
623
const boardDescriptor = this._boardManager.currentBoard;
@@ -644,8 +652,10 @@ export class ArduinoApp {
644
652
result.push(path.normalize(path.join(toolPath, "**")));
645
653
}
646
654
return result;
647
- }
655
+ }*/
648
656
657
+ // IS-REMOVE: to be removed completely when IntelliSense implementation is merged
658
+ /*
649
659
public getDefaultForcedIncludeFiles(): string[] {
650
660
const result = [];
651
661
const boardDescriptor = this._boardManager.currentBoard;
@@ -665,6 +675,7 @@ export class ArduinoApp {
665
675
result.push("USBCON");
666
676
return result;
667
677
}
678
+ */
668
679
669
680
public openExample ( example ) {
670
681
function tmpName ( name ) {
@@ -705,6 +716,7 @@ export class ArduinoApp {
705
716
const dc = DeviceContext . getInstance ( ) ;
706
717
const arduinoJson = {
707
718
sketch : sketchFile ,
719
+ // TODO: COM1 is Windows specific - what about OSX and Linux users?
708
720
port : dc . port || "COM1" ,
709
721
board : dc . board ,
710
722
configuration : dc . configuration ,
@@ -713,6 +725,8 @@ export class ArduinoApp {
713
725
util . mkdirRecursivelySync ( path . dirname ( arduinoConfigFilePath ) ) ;
714
726
fs . writeFileSync ( arduinoConfigFilePath , JSON . stringify ( arduinoJson , null , 4 ) ) ;
715
727
728
+ // IS-REMOVE: to be removed completely when IntelliSense implementation is merged
729
+ /*
716
730
// Generate cpptools intellisense config
717
731
const cppConfigFilePath = path.join(destExample, constants.CPP_CONFIG_FILE);
718
732
@@ -749,6 +763,7 @@ export class ArduinoApp {
749
763
};
750
764
util.mkdirRecursivelySync(path.dirname(cppConfigFilePath));
751
765
fs.writeFileSync(cppConfigFilePath, JSON.stringify(cppConfig, null, 4));
766
+ */
752
767
}
753
768
754
769
// Step 3: Open the arduino project at a new vscode window.
0 commit comments