Files
vscode/extensions/github-authentication
979e48cec5 Add authSessionAccountIcon proposed API and account avatar support (#308654)
* Add authSessionAccountIcon proposed API and account avatar support

Introduces a new proposed API `authSessionAccountIcon` that allows authentication
providers to supply an icon URL (typically a profile avatar) for authentication
session accounts.

Changes:
- New proposed API: `AuthenticationSessionAccountInformation.iconUrl`
- GitHub authentication extension updated to fetch and provide user avatar URLs
- Activity bar and global composite bar updated to display account avatars
- Authentication service extended to propagate icon information

* Address Copilot review feedback

- Use removeAttribute('src') instead of empty string to avoid spurious requests
- Add alt='', aria-hidden='true', draggable=false to avatar img for accessibility
- Update iconUrl in addOrUpdateAccount when provider supplies/changes it
- Fetch avatarUrl for existing sessions that are missing iconUrl

* Address review feedback: account icon as Uri, avatar setting, Agents window consolidation

- Change AuthenticationSessionAccountInformation.iconUrl (string) to icon (Uri)
  per review feedback, and use URI in the internal workbench type
- Revive the icon URI at the RPC boundaries (MainThread/ExtHost), typing the
  proxies as Proxied<T>
- Persist the fetched avatar in stored GitHub auth sessions so it is not
  refetched on every read
- Add workbench.accounts.showAvatar setting to show/hide account avatars
- Agents window: prefer the authentication session's account icon over the
  hardcoded github.com avatar URL pattern and honor the new setting

* Fix Compile & Hygiene: tab indentation in extensionsApiProposals and remove unused import

* Fix DynamicAuthProvider test mock to match Proxied proxy typing

* auth - improve account avatar support

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-14 06:47:04 +00:00
..

GitHub Authentication for Visual Studio Code

Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.

Features

This extension provides support for authenticating to GitHub. It registers the github Authentication Provider that can be leveraged by other extensions. This also provides the GitHub authentication used by Settings Sync.