File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export async function activate(context: vscode.ExtensionContext) {
123
123
const usingBundledArduinoCli = arduinoContextModule . default . arduinoApp . settings . usingBundledArduinoCli ;
124
124
125
125
// 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 ) ) ) {
127
127
Logger . traceError ( "InvalidArduinoPath" , new Error ( constants . messages . INVALID_ARDUINO_PATH ) ) ;
128
128
await askSwitchToBundledCli ( constants . messages . INVALID_ARDUINO_PATH + " " + constants . messages . SWITCH_TO_BUNDLED_CLI ) ;
129
129
} else if ( ! commandPath || ! util . fileExistsSync ( commandPath ) ) {
You can’t perform that action at this time.
0 commit comments