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

add progress status for verify and upload #549

Merged
merged 1 commit into from
May 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ export async function activate(context: vscode.ExtensionContext) {
if (!status.compile) {
status.compile = "verify";
try {
await ArduinoContext.arduinoApp.verify();
await vscode.window.withProgress({
location: vscode.ProgressLocation.Window,
title: "Arduino: Verifing...",
}, async () => {
await ArduinoContext.arduinoApp.verify();
});
} catch (ex) {
}
delete status.compile;
Expand All @@ -153,7 +158,12 @@ export async function activate(context: vscode.ExtensionContext) {
if (!status.compile) {
status.compile = "upload";
try {
await ArduinoContext.arduinoApp.upload();
await vscode.window.withProgress({
location: vscode.ProgressLocation.Window,
title: "Arduino: Uploading...",
}, async () => {
await ArduinoContext.arduinoApp.upload();
});
} catch (ex) {
}
delete status.compile;
Expand Down