Repository navigation
Keep database connections usable across expiry and idle drops - #1136
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…5 R16) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…s (PR5 R4) 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>
Reuse the existing import count translation and tidy the document regression fixture. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the delete callback typed without altering when the bound or tree client is resolved. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the import lease through cleanup and the bound import interruption handling from PR5. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate localization, apply repository formatting, keep Disconnect type narrowing explicit, and update the Atlas fixture for connected-state detection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use Reconnect for an explicit disconnect, keep Fluent layout defaults, and verify teardown rejects active import and export leases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reuse Retry for the auto-opened panel only after a same-identity reconnect. Record OP-5 evidence without claiming a live transfer test. 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>
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>
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>
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>
A dirty report can lag behind the editor. Authorize disposal only for the editable tabs covered by the discard confirmation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Return the current AI request to idle without losing static insights, and fence stale stream callbacks before they affect state or notifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Align error translation guidance with the typed session-ended reason and the current webview recovery flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…pers Keep the session reports available in installed builds, gate schema tools with the survey commands, and remove the demo task. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Lead with counts and separate each connection, Shell, or Playground session with a state heading and bulleted details. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Apply the Case 2 formatter output without rewriting the existing commits. 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>
Tomasz Naumowicz (tnaum-ms)
enabled auto-merge
December 3, 2026 17:32
Guanzhou Song (guanzhousongmicrosoft)
approved these changes
Dec 3, 2026
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.



Release notes: keep working after sign-in expires or a connection drops
The DocumentDB extension for Visual Studio Code can recover from routine Microsoft Entra token expiry and idle connection drops without restarting VS Code.
Stability and validation
A delayed failure from an old client cannot evict its replacement. A pending action from an ended session (including a confirmed-later delete) cannot reach the reconnected database. A temporary outage does not permanently disable a live tab; a deliberate disconnect does. Rejected credentials are not silently retried.
1e12d20passed, including unit tests, static checks, package verification, VSIX inspection and activation. The full local verification on #1169 recorded 11,011 passing tests and one skipped. Atc50dd2a9b, the full local review checks passed: formatting, localization verification, lint, build, test type-check, Vitest (11,016 passed, one skipped), and VSIX packaging.Telemetry: what we can measure
Startup events give per-attempt stages, timing and outcomes. Established-client tree events can add age, generation and failure kind. Post-startup Entra lookups report surface, lookup outcome and token lifetime when available. Instrumented webview calls distinguish thrown failures (
causeType) from blocked operations (unavailableReason, includingsessionEnded). Disconnect records tab choice, affected views/workers and task conflicts; Azure Discovery records skipped-account/tenant counts and ARM challenge outcomes. These lifecycle dimensions do not need tokens, connection strings or account identifiers.connect.startupevents withstartupTrigger=explicitReconnect, grouped bystartupOutcome(succeeded,failed,canceled). An accepted click reserves the startup ID; a click without an observed startup is not a failed connection. These are extension-client startups, not driver socket reconnects.renewalOutcomenow distinguishesproviderChangedfromnoSessionin the extension, Shell and Playground. A token returned by the host is not proof of database acceptance.Succeeded; exclude it usingunavailableReason.Use these for within-version diagnosis, not a before/after failure-rate claim. Telemetry queries and definitions. Candidate-matched prerelease ingestion (CP-5) remains to be verified.
Scope and history
Original stages: #1107, #1108, #1111, #1113, #1117, #1121, #1130, #1133, #1135. Subsequent hardening and review: #1137, #1138, #1139, #1146, #1149, #1154, #1169, #1170. Feature design and decisions.
Not included: broader network/Kubernetes tunnel recovery (#1105), stale-result indicators (#1106), or proactive sign-out handling (#1119).
Fixes #1102
Fixes #990
Fixes #1059
Part of #566 and #1091. Related to #626.