From d3c3cf8f5025d9565eff4aa2545431adebb1aa83 Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt <2644648+TylerLeonhardt@users.noreply.github.com> Date: Wed, 13 Aug 2025 09:44:28 -0700 Subject: [PATCH] Attempt to fix Codespaces bug by declaring a default (#261484) Fixes https://github.com/microsoft/vscode/issues/261238 --- extensions/github-authentication/src/extension.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'), {