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

Commit 1cb9bf8

Browse files
authored
add progress status for verify and upload (#549)
1 parent f135186 commit 1cb9bf8

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/extension.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ export async function activate(context: vscode.ExtensionContext) {
140140
if (!status.compile) {
141141
status.compile = "verify";
142142
try {
143-
await ArduinoContext.arduinoApp.verify();
143+
await vscode.window.withProgress({
144+
location: vscode.ProgressLocation.Window,
145+
title: "Arduino: Verifing...",
146+
}, async () => {
147+
await ArduinoContext.arduinoApp.verify();
148+
});
144149
} catch (ex) {
145150
}
146151
delete status.compile;
@@ -153,7 +158,12 @@ export async function activate(context: vscode.ExtensionContext) {
153158
if (!status.compile) {
154159
status.compile = "upload";
155160
try {
156-
await ArduinoContext.arduinoApp.upload();
161+
await vscode.window.withProgress({
162+
location: vscode.ProgressLocation.Window,
163+
title: "Arduino: Uploading...",
164+
}, async () => {
165+
await ArduinoContext.arduinoApp.upload();
166+
});
157167
} catch (ex) {
158168
}
159169
delete status.compile;

0 commit comments

Comments
 (0)