Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Support custom libraries with portable version of Arduino #946

Merged
merged 4 commits into from
Feb 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/arduino/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ Please make sure the folder is not occupied by other procedures .`);
// Arduino built-in libraries
includePath.push(path.join(this._settings.arduinoPath, "libraries", "**"));
// Arduino custom package tools
includePath.push(path.join(os.homedir(), "Documents", "Arduino", "hardware", "tools", "**"));
includePath.push(path.join(this._settings.sketchbookPath, "hardware", "tools", "**"));
// Arduino custom libraries
includePath.push(path.join(os.homedir(), "Documents", "Arduino", "libraries", "**"));
includePath.push(path.join(this._settings.sketchbookPath, "libraries", "**"));

const forcedInclude = this.getDefaultForcedIncludeFiles();

Expand Down