Skip to content

Commit b33271f

Browse files
committed
fixed bug in issue microsoft#1709
1 parent 7eeb336 commit b33271f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export async function activate(context: vscode.ExtensionContext) {
123123
const usingBundledArduinoCli = arduinoContextModule.default.arduinoApp.settings.usingBundledArduinoCli;
124124

125125
// Ask the user to switch to the bundled Arduino CLI if we can't resolve the specified path.
126-
if (!usingBundledArduinoCli && (!arduinoPath || !validateArduinoPath(arduinoPath, useArduinoCli))) {
126+
if (!usingBundledArduinoCli && !useArduinoCli && (!arduinoPath || !validateArduinoPath(arduinoPath, useArduinoCli))) {
127127
Logger.traceError("InvalidArduinoPath", new Error(constants.messages.INVALID_ARDUINO_PATH));
128128
await askSwitchToBundledCli(constants.messages.INVALID_ARDUINO_PATH + " " + constants.messages.SWITCH_TO_BUNDLED_CLI);
129129
} else if (!commandPath || !util.fileExistsSync(commandPath)) {

0 commit comments

Comments
 (0)