Skip to content

Simplify stale recovery actions and ended connection sessions - #1169

Merged
Tomasz Naumowicz (tnaum-ms) merged 9 commits into
feature/connection-lifecyclefrom
dev/tnaum/pr1136-scope-reductions
Dec 2, 2026
Merged

Tomasz Naumowicz (tnaum-ms) merged 9 commits into
feature/connection-lifecyclefrom
dev/tnaum/pr1136-scope-reductions

Conversation

@tnaum-ms

Copy link
Copy Markdown
Collaborator

What changed

  • Give stale Retry, Reconnect, Disconnect and tree sign-in actions one actionable explanation. Keep real provider and credential failures specific, and keep genuine cancellation quiet.
  • Retained tabs report Session ended. They remain copyable, but a reconnect cannot revive them or let old writes reach the new session. Same-account physical-client replacement still lets live tabs continue.
  • Consolidate duplicate credential-edit and sign-in dismissal tests while retaining tests at the distinct guard and save boundaries.

Why and scope

This implements decision 0036 for #1136. A retired tab needs a next step, not a history of why it stopped. The current connection still retains its precise state. Azure Discovery/ARM, Show Connection Stats, Close/Keep/Cancel, dirty-draft protection, and ordinary Shell/Playground recovery remain unchanged. No isolated Shell extraction or new entry point, and no automatic replay.

Validation

Case 1 passed: build, 518 focused Vitest tests, and 80 browser scenario-definition tests. Case 2 is pending on this draft. Live workbench checks remain: same-account expiry/idle recovery; Keep open with a dirty edit, copy/dismiss, and reconnect; stale tree actions during a provider prompt.

Decision 0036 and work ledger

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

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ CI passed: standard tier (ready PR)

Commit cb4d141, workflow run.

Layer Result Ran or skipped because
Static checks ✅ passed every push
Unit tests ✅ passed every push
npm packages: verify tarballs ⏭️ skipped no change to packages/**, package-lock.json or the CI workflow
VSIX: inspect contents ✅ passed ready PR
VSIX: self-test of the checks ✅ passed build/verification/**, build/vite/**, the Vite configs, package-lock.json or the CI workflow changed
VSIX: activate in VS Code ✅ passed ready PR
VSIX: self-test of the activation check ✅ passed build/verification/**, build/vite/**, the Vite configs, package-lock.json or the CI workflow changed
Webview host in unbundled extensions ⏭️ skipped no change to packages/vscode-ext-webview/**, package-lock.json or the CI workflow
E2E ⏭️ not available yet arrives with the E2E iteration (full tier)

Full run: add the ci:full-requested label to run every layer once on the current commit.
No full run yet.

Code quality

Check Status How to fix
Localization (l10n) ✅ Passed Nothing to fix
ESLint ✅ Passed Nothing to fix
Prettier formatting ✅ Passed Nothing to fix

PR change stats

Area Files changed Lines added Lines removed Net lines
Production code 10 75 142 -67
Tests and fixtures 26 692 685 +7
Other Markdown 1 6 1 +5
Planning and review notes 4 178 3 +175
Generated files and lockfiles 1 3 1 +2
Other files 1 4 7 -3

Whole PR since the merge base. Net is added minus removed. Moves between areas count in both.

Review hotspots: most changed code and test files
  • src/commands/signInAgain/signInAgain.test.ts: +136 / -96
  • src/webviews/documentdb/collectionView/collectionViewRouter.test.ts: +85 / -91
  • src/documentdb/connectionTeardown.test.ts: +116 / -52
  • src/commands/updateCredentials/updateCredentials.test.ts: +17 / -101
  • src/commands/retryAuthentication/retryAuthentication.test.ts: +67 / -42

Build size

No size data for feature/connection-lifecycle yet; sizes only. VSIX: 8.6 MiB.

Artifacts: VSIX | Bundle-reports-46960062037 | L1-manifest-report-46960062037

All graphs (exact bytes)
Graph PR bytes
Collection View page (collectionView) 5,033,102
Document View page (documentView) 4,479,907
Local Quick Start page (localQuickStart) 1,245,501
Atlas Credentials page (atlasCredentials) 1,174,172
Cluster Dashboard page (clusterDashboard) 1,224,450
Diagnose Connection page (connectionDiagnostics) 1,197,087
Activation (mainStartup) 3,250,837
Extension host (main) 9,828,151
Playground worker (playgroundWorker) 5,417,400
VSIX (vsix) 9,065,868
playgroundTsPlugin 6,175
viewsEntry 1,121,605
viewsAssets 80,340
editorWorker 259,570
jsonWorker 389,427

Packaged bytes. Shared chunks count in every graph that loads them, so rows do not add up.

Updated in place on every run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) marked this pull request as ready for review December 2, 2026 20:08
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) merged commit 01590e0 into feature/connection-lifecycle Dec 2, 2026
14 checks passed
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) deleted the dev/tnaum/pr1136-scope-reductions branch December 2, 2026 20:09
@tnaum-ms Tomasz Naumowicz (tnaum-ms) added this to the 1.2.0 milestone Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant