Skip to content

Commit

Permalink
Add information blurbs when building Argus.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinleroy committed Apr 4, 2024
1 parent 4808203 commit 7d8c074
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ide/packages/extension/src/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
9 changes: 9 additions & 0 deletions ide/packages/extension/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
[
Expand Down Expand Up @@ -153,6 +159,9 @@ const checkVersionAndInstall = async (
}
}

vscode.window.showInformationMessage(
"Installing Argus from source (this may take a minute)"
);
await execNotify(
cargo,
[
Expand Down

0 comments on commit 7d8c074

Please sign in to comment.