sessions: Preserve focus during background session replacement #336720

Merged
chrmarti opened 2:00am on September 18, 2026 wanted to merge 268 Δ into microsoft/vscode main from
chrmarti/preserve-session-replacement-focus

Pull request #336720 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 500 268
Maximum comment count per PR 10 9
Pull request maximum business days between activity 3 0
Pull request maximum business days open 5 0

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
100 test/smoke/src/areas/agentsWindow/remoteDevContainerFixtures.ts
test/smoke/README.md
2
100 src/vs/sessions/services/sessions/test/browser/visibleSessions.test.ts
src/vs/sessions/services/sessions/browser/visibleSessions.ts
1
75 test/smoke/src/areas/agentsWindow/remoteDevContainerFixtures.ts
test/smoke/src/areas/agentsWindow/agentsWindow.test.ts
1
75 src/vs/sessions/services/sessions/browser/visibleSessions.ts
src/vs/sessions/services/sessions/test/browser/visibleSessions.test.ts
1
71 src/vs/sessions/services/sessions/browser/sessionsService.ts
src/vs/sessions/services/sessions/test/browser/sessionsManagementService.test.ts
2

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Stat calculation pending updated commit group build. Please check back in a few minutes.