Skip to content

Commit c6f7f8e

Browse files
committed
Clarify order of signed-in context
1 parent 2a4d449 commit c6f7f8e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export async function activate(context: vscode.ExtensionContext) {
3737

3838
log("Activating GitHub Actions extension...");
3939

40+
// Set signed-in context before other initializations use the session
4041
await vscode.commands.executeCommand("setContext", "github-actions.signed-in", false);
41-
registerSignIn(context);
4242

4343
// Prefetch git repository origin url
4444
await getGitHubContext();
@@ -79,6 +79,8 @@ export async function activate(context: vscode.ExtensionContext) {
7979
registerPinWorkflow(context);
8080
registerUnPinWorkflow(context);
8181

82+
registerSignIn(context);
83+
8284
// Log providers
8385
context.subscriptions.push(
8486
vscode.workspace.registerTextDocumentContentProvider(LogScheme, new WorkflowStepLogProvider())

0 commit comments

Comments
 (0)