From 7d8c0740e392de040b9a394b8c59cfff4ad460e8 Mon Sep 17 00:00:00 2001 From: gavinleroy Date: Thu, 4 Apr 2024 11:23:25 -0600 Subject: [PATCH] Add information blurbs when building Argus. --- ide/packages/extension/src/ctx.ts | 5 +++-- ide/packages/extension/src/setup.ts | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ide/packages/extension/src/ctx.ts b/ide/packages/extension/src/ctx.ts index e777488..2106429 100644 --- a/ide/packages/extension/src/ctx.ts +++ b/ide/packages/extension/src/ctx.ts @@ -138,8 +138,9 @@ export class Ctx { showErrorDialog("Failed to setup Argus"); return; } - // TODO: add some sort of "status loading" indicator. - // Compile the workspace with the Argus version of rustc. + vscode.window.showInformationMessage( + "Loading Argus, this may take several minutes." + ); await b(["preload"], true); this.cache = new BackendCache(b); diff --git a/ide/packages/extension/src/setup.ts b/ide/packages/extension/src/setup.ts index c077c57..d2bd754 100644 --- a/ide/packages/extension/src/setup.ts +++ b/ide/packages/extension/src/setup.ts @@ -26,6 +26,9 @@ declare const TOOLCHAIN: { components: string[]; }; +// TODO: all of the calls to `showInformationMessage` should be replaced +// with some automatic message on the statusBar indicator. + function getCurrentToolchain(): RustcToolchain { return { version: VERSION, @@ -121,6 +124,9 @@ const checkVersionAndInstall = async ( ); const components = config.components.map(c => ["-c", c]).flat(); try { + vscode.window.showInformationMessage( + "Installing nightly Rust (this may take a minute)" + ); await execNotify( "rustup", [ @@ -153,6 +159,9 @@ const checkVersionAndInstall = async ( } } + vscode.window.showInformationMessage( + "Installing Argus from source (this may take a minute)" + ); await execNotify( cargo, [