Skip to content

Commit a910665

Browse files
authored
Always show sign in badge on desktop (#5197)
1 parent 8e4257b commit a910665

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/common/settingKeys.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const SELECT_LOCAL_BRANCH = 'selectLocalBranch';
2828
export const SELECT_REMOTE = 'selectRemote';
2929
export const REMOTES = 'remotes';
3030
export const PULL_PR_BRANCH_BEFORE_CHECKOUT = 'pullPullRequestBranchBeforeCheckout';
31-
export const EXPERIMENTAL_ACCOUNT_BADGE = 'experimental.accountBadge';
3231
export const UPSTREAM_REMOTE = 'upstreamRemote';
3332
export const DEFAULT_CREATE_OPTION = 'defaultCreateOption';
3433

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Logger from './common/logger';
1515
import * as PersistentState from './common/persistentState';
1616
import { parseRepositoryRemotes } from './common/remote';
1717
import { Resource } from './common/resources';
18-
import { BRANCH_PUBLISH, EXPERIMENTAL_ACCOUNT_BADGE, FILE_LIST_LAYOUT, GIT, OPEN_DIFF_ON_CLICK, PR_SETTINGS_NAMESPACE } from './common/settingKeys';
18+
import { BRANCH_PUBLISH, FILE_LIST_LAYOUT, GIT, OPEN_DIFF_ON_CLICK, PR_SETTINGS_NAMESPACE } from './common/settingKeys';
1919
import { TemporaryState } from './common/temporaryState';
2020
import { Schemes, handler as uriHandler } from './common/uri';
2121
import { EXTENSION_ID, FOCUS_REVIEW_MODE } from './constants';
@@ -341,7 +341,7 @@ async function deferredActivate(context: vscode.ExtensionContext, apiImpl: GitAp
341341
const experimentationService = await createExperimentationService(context, telemetry);
342342
await experimentationService.initializePromise;
343343
await experimentationService.isCachedFlightEnabled('githubaa');
344-
const showBadge = ((vscode.env.appHost === 'desktop') && (experimentationService.getTreatmentVariable('vscode', 'showAuthBadge') || vscode.workspace.getConfiguration(PR_SETTINGS_NAMESPACE).get(EXPERIMENTAL_ACCOUNT_BADGE, false)));
344+
const showBadge = (vscode.env.appHost === 'desktop');
345345
await credentialStore.create(showBadge ? undefined : { silent: true });
346346

347347
deferredActivateRegisterBuiltInGitProvider(context, apiImpl, credentialStore);

0 commit comments

Comments
 (0)