diff --git a/src/extension.ts b/src/extension.ts index 240cadae..559da75c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -25,7 +25,6 @@ export async function activate(context: vscode.ExtensionContext): Promise leetCodeTreeDataProvider.refresh(); }); - leetCodeManager.getLoginStatus(); const leetCodeTreeDataProvider: LeetCodeTreeDataProvider = new LeetCodeTreeDataProvider(context); context.subscriptions.push( @@ -47,6 +46,7 @@ export async function activate(context: vscode.ExtensionContext): Promise ); await plugin.initializeEndpoint(); + leetCodeManager.getLoginStatus(); } export function deactivate(): void {