We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990c1a1 commit 8227014Copy full SHA for 8227014
src/arduino/arduino.ts
@@ -124,13 +124,17 @@ export class ArduinoApp {
124
await this.getMainSketch(dc);
125
}
126
127
- if ((!dc.configuration || !/upload_method=[^=,]*st[^,]*link/i.test(dc.configuration)) && !dc.port) {
+ const selectSerial = async () => {
128
const choice = await vscode.window.showInformationMessage(
129
"Serial port is not specified. Do you want to select a serial port for uploading?",
130
"Yes", "No");
131
if (choice === "Yes") {
132
vscode.commands.executeCommand("arduino.selectSerialPort");
133
134
+ }
135
+
136
+ if ((!dc.configuration || !/upload_method=[^=,]*st[^,]*link/i.test(dc.configuration)) && !dc.port) {
137
+ await selectSerial();
138
return;
139
140
0 commit comments