We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ee7d7 commit 6d791dfCopy full SHA for 6d791df
src/export_command/wikimedia_function/bot.ts
@@ -100,7 +100,8 @@ export async function getDefaultBot(): Promise<MWBot | undefined> {
100
101
export async function getLoggedInBot(): Promise<MWBot | undefined> {
102
const config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("wikitext");
103
- if (bot === undefined) {
+ // if bot is not be created or not logged in
104
+ if (bot === undefined || !bot.loggedIn) {
105
switch (config.get('autoLogin')) {
106
case 'Always':
107
return await login() ? bot : undefined;
0 commit comments