Skip to content

Commit 47ef3ef

Browse files
nullvariantclaude
andauthored
fix: remove forced default icon for identities without icon configured (#251)
Status bar previously showed a person icon for all identities without an icon via `identity.icon || '...'` fallback. Now shows only the identity name when no icon is set. The default preset profile is unaffected as it has an explicit icon value configured. - Remove hardcoded fallback icon in identityStatusBar.ts setIdentity() - Bump version to 0.16.7 - Update CHANGELOG.md 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Model-Raw: claude-opus-4-5-20251101 Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3edc108 commit 47ef3ef

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

extensions/git-id-switcher/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.16.7] - 2026-01-30
11+
12+
### Fixed
13+
14+
- **Remove forced default icon (👤) for identities without an icon configured**:
15+
- Status bar now shows only the identity name when no icon is set
16+
- Previously, identities created without an icon always displayed 👤 in the status bar
17+
- The default preset profile still shows 👤 as it has `"icon": "👤"` explicitly configured
18+
1019
## [0.16.6] - 2026-01-30
1120

1221
### Fixed

extensions/git-id-switcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "git-id-switcher",
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
5-
"version": "0.16.6",
5+
"version": "0.16.7",
66
"publisher": "nullvariant",
77
"icon": "images/icon.png",
88
"engines": {

extensions/git-id-switcher/src/ui/documentationInternal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const DOCUMENT_HASHES: Record<string, string> = {
2525
'AGENTS.md': '54f16b767e57686b3eb46a2b4aa02b378554cc492c32c49ed96588f6d184b6b8',
2626
'CODE_OF_CONDUCT.md': 'a5eb286c902437bbe0f6d409894f20e51c172fa869fe2f151bfa388f9d911b54',
2727
'CONTRIBUTING.md': '4150f8810aec7b2e8eff9f3c69ee1bae1374843f50a812efa6778cba27a833cd',
28-
'extensions/git-id-switcher/CHANGELOG.md': '6093287b17cf311b5d3c77ee135a2bf45029cafc1b88e58212ba1bc453f118bd',
28+
'extensions/git-id-switcher/CHANGELOG.md': 'c55d8013a0da0afbb51cfd08097c1ed38924e1758c0558c7d35eb816ae666040',
2929
'extensions/git-id-switcher/docs/ARCHITECTURE.md': 'a12dd717f83b28b648972a826701a29fcfd575e351c487f8c421402f80ac3d25',
3030
'extensions/git-id-switcher/docs/CONTRIBUTING.md': '7d6ad2bc4d8c838790754cb9df848cb65f9fdce7e1a13e5c965b83a3d5b6378c',
3131
'extensions/git-id-switcher/docs/DESIGN_PHILOSOPHY.md': 'f9718b61ac161cb466dbc76845688e7acacf4e5fdc4b8b9553269dba4a094f6b',

extensions/git-id-switcher/src/ui/identityStatusBar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ export class IdentityStatusBar implements vscode.Disposable {
3535

3636
/**
3737
* Update status bar with current identity
38-
* Shows emoji icon if configured, otherwise uses default 👤
38+
* Shows emoji icon only if configured
3939
*/
4040
setIdentity(identity: Identity): void {
4141
this.currentIdentity = identity;
42-
// Use identity's icon if available, otherwise default emoji
43-
const icon = identity.icon || '👤';
4442
// Truncate for status bar to avoid taking too much horizontal space
45-
const displayText = truncateForStatusBar(`${icon} ${identity.name}`);
43+
const displayText = truncateForStatusBar(
44+
identity.icon ? `${identity.icon} ${identity.name}` : identity.name
45+
);
4646
this.statusBarItem.text = displayText;
4747
this.statusBarItem.tooltip = new vscode.MarkdownString(
4848
this.buildTooltip(identity)

0 commit comments

Comments
 (0)