github-authentication - simplify avatar persistence - #331061
Open
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
Open
github-authentication - simplify avatar persistence#331061Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
Conversation
Dmitriy Vasyura (dmitrivMS)
requested a review
from Tyler James Leonhardt (TylerLeonhardt)
August 16, 2026 07:50
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
August 16, 2026 07:50
Copilot started reviewing on behalf of
Dmitriy Vasyura (dmitrivMS)
August 16, 2026 07:51
View session
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dmitriy Vasyura (dmitrivMS)
force-pushed
the
dev/dmitriv/account-avatar-simplify
branch
from
August 16, 2026 07:53
d5c211d to
9188490
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Simplifies avatar persistence in the GitHub Authentication provider while preserving avatar lookup for new and legacy accountless sessions.
Changes:
- Uses native URI serialization and inferred URI component types.
- Removes redundant avatar lookup, caching, and serialization helpers.
- Removes helper-specific tests made obsolete by the simplification.
Show a summary per file
| File | Description |
|---|---|
extensions/github-authentication/src/github.ts |
Simplifies session and avatar persistence. |
extensions/github-authentication/src/test/github.test.ts |
Removes obsolete helper tests. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #308654, which introduced
authSessionAccountIconand account avatar support.This PR applies Tyler's review cleanup to the GitHub Authentication session-persistence implementation:
vscode.Uri.frominstead of maintaining a duplicate URI-components interface.vscode.UriJSON serialization instead of manually rebuilding stored URI components./userrequests solely to backfill icons for sessions that already contain account information.WeakSetcache, manual pruning, serialization helpers, and their helper-only tests.New sessions and legacy accountless sessions still receive and persist avatars during their already-required
/userlookup. Existing accountful sessions created before avatar support remain valid and iconless until naturally recreated or refreshed.Validation
git diff --checkpassed.