diff --git a/extensions/github-authentication/src/extension.ts b/extensions/github-authentication/src/extension.ts index f63e45762b6..89a42a364b7 100644 --- a/extensions/github-authentication/src/extension.ts +++ b/extensions/github-authentication/src/extension.ts @@ -81,12 +81,11 @@ export function activate(context: vscode.ExtensionContext) { })); // Listener to prompt for reload when the fetch implementation setting changes - let beforeFetchSetting = vscode.workspace.getConfiguration('github-authentication').get('useElectronFetch'); + const beforeFetchSetting = vscode.workspace.getConfiguration().get('github-authentication.useElectronFetch', true); context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(async e => { if (e.affectsConfiguration('github-authentication.useElectronFetch')) { - const afterFetchSetting = vscode.workspace.getConfiguration('github-authentication').get('useElectronFetch'); + const afterFetchSetting = vscode.workspace.getConfiguration().get('github-authentication.useElectronFetch', true); if (beforeFetchSetting !== afterFetchSetting) { - beforeFetchSetting = afterFetchSetting; const selection = await vscode.window.showInformationMessage( vscode.l10n.t('GitHub Authentication - Reload required'), {