Skip to content

Commit

Permalink
Fix: initial download failure was stopping extension setup (#169)
Browse files Browse the repository at this point in the history
* Move download at startup to the background

* Changelog
  • Loading branch information
Razz4780 authored Feb 5, 2025
1 parent e8c40e7 commit c1d8dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/163.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mirrord now correctly displays status bar, even if initial download of the mirrord binary fails.
5 changes: 3 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ export async function activate(context: vscode.ExtensionContext) {
context.workspaceState.update('enabled', enabled);
vscode.debug.registerDebugConfigurationProvider('*', new ConfigurationProvider(), 2);

// start mirrord binary updates, so that we avoid downloading mid session
await getMirrordBinary(true);
// Start mirrord binary update, so that we avoid downloading mid session.
// Do not `await` here. Let this happen in the background.
getMirrordBinary(true);

new MirrordStatus(vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 0))
.register()
Expand Down

0 comments on commit c1d8dcc

Please sign in to comment.