From 466ff673e712ab75b409a2af9096a5ca24c9637a Mon Sep 17 00:00:00 2001 From: Raomin Date: Thu, 19 Dec 2019 16:47:48 +0100 Subject: [PATCH 1/2] Support custom libraries in portable version --- src/arduino/arduino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arduino/arduino.ts b/src/arduino/arduino.ts index b1d1f64e..7ded1bf2 100644 --- a/src/arduino/arduino.ts +++ b/src/arduino/arduino.ts @@ -670,7 +670,7 @@ Please make sure the folder is not occupied by other procedures .`); // Arduino custom package tools includePath.push(path.join(os.homedir(), "Documents", "Arduino", "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(); From 8009ab070806dc5fd164746837a6d51efe883b29 Mon Sep 17 00:00:00 2001 From: Raomin Date: Fri, 17 Jan 2020 09:47:54 +0100 Subject: [PATCH 2/2] Change path location for custom package tool see https://github.com/microsoft/vscode-arduino/pull/946 --- src/arduino/arduino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arduino/arduino.ts b/src/arduino/arduino.ts index 7ded1bf2..73619a7b 100644 --- a/src/arduino/arduino.ts +++ b/src/arduino/arduino.ts @@ -668,7 +668,7 @@ 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(this._settings.sketchbookPath, "libraries", "**"));