Skip to content

Commit 39ac6ab

Browse files
committed
Execute commands in parallel
1 parent 9b4f2be commit 39ac6ab

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/extension.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ export async function activate(context: vscode.ExtensionContext) {
4646
const ghContext = hasSession && (await getGitHubContext());
4747
const hasGitHubRepos = ghContext && ghContext.repos.length > 0;
4848

49-
await vscode.commands.executeCommand("setContext", "github-actions.signed-in", hasSession);
50-
await vscode.commands.executeCommand("setContext", "github-actions.internet-access", canReachAPI);
51-
await vscode.commands.executeCommand("setContext", "github-actions.has-repos", hasGitHubRepos);
49+
await Promise.all([
50+
vscode.commands.executeCommand("setContext", "github-actions.signed-in", hasSession),
51+
vscode.commands.executeCommand("setContext", "github-actions.internet-access", canReachAPI),
52+
vscode.commands.executeCommand("setContext", "github-actions.has-repos", hasGitHubRepos)
53+
]);
5254

5355
initResources(context);
5456
initConfiguration(context);

0 commit comments

Comments
 (0)