You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local Quick Start: replace free-text service messages with typed message keys #865
QuickStartService emits user-facing text as plain English strings on StageEvent.message / StageEvent.error
and QuickStartStatus.errorMessage. The webview renders them verbatim
(setSuccessMessage(event.message), setErrorMessage(event.error ?? event.message)) and the Connections view
renders status.errorMessage as the tree row description.
PR #798 wraps these in vscode.l10n.t with {0} placeholders (finding M2, option A) as the immediate fix.
That resolves the localization gap but leaves presentation concerns in the service layer.
Proposed work (the end state)
Replace the free-text messages with a typed message key on StageEvent and localize in the webview.
This is the pattern the same feature already uses for Docker diagnosis: the extension host returns typed keys
(DockerGuidanceKey, DockerFailureKind, DockerStartLabelKey, DockerRecoveryNoteKey, …) and LocalQuickStart.tsx owns the copy. Applying the same shape to the provisioning messages would make the whole
feature consistent.
Benefits
Cleanly separates transport from presentation.
Copy changes stop touching the service layer.
Removes a class of "forgot to wrap this one in l10n.t" bugs.
Makes the messages testable by key rather than by string matching.
Scope
Define the key union + payload (some messages interpolate a port or an error detail).
Update provision(), resumeReadiness(), the lifecycle methods, and the tree row description.
Move the copy into the webview's existing lookup-map pattern and into LocalQuickStartItem for tree rows.
Why deferred
Larger refactor than the 0.10.0 release window allows, and it interacts with the Quick Start state-model work
still under discussion. Scheduling for 0.10.1, after 0.10.0 ships.
Context
From the PR #798 code review — finding M2, deferred option B.
See docs/ai-and-plans/PRs/798-local-quickstart/code-review-2026-08-04.md.
The immediate localization gap this issue describes was already closed by #798 (l10n.t wrapping), so what remains is the architectural half: replacing the free-text StageEvent.message / StageEvent.error / QuickStartStatus.errorMessage payloads with typed message keys and moving the copy to the presentation layer.
Scope measured on the current branch: 19 stageEvent() call sites carrying literal text, 6 setStatus(..., InstanceState.Error, message) sites, the webview message rendering, and the tree row description. Several messages interpolate dynamic data (ports, raw driver text), so this needs a key plus payload union rather than a bare enum, with raw driver output kept in a separate detail field that is never keyed.
It will land as its own PR rather than inside #876, which is already large and touches the provisioning state machine. This issue will be referenced from that PR when the work is done.
Closing manually: #879 targeted dev/tnaum/quickstart-improvements rather than the default branch, so the Fixes #865 keyword did not fire. The work reaches main with #876.
What landed:
StageEvent.message / QuickStartStatus.errorMessage now carry a QuickStartMessage — a key plus the data needed to phrase it (port, environment) and a detail field for raw daemon or driver text, which is the one thing never translated.
StageEvent.error is gone. It duplicated message at every call site but two, where it differed only by being undefined on abort, and the webview fell back to message anyway.
Five stage payloads (Checking Docker…, Pulling the official image…, Creating container…, Starting container…, Waiting for DocumentDB to accept connections…) turned out to be raw English and dead — the webview labels its checklist from its own stageLabels() map and only reads message on terminal events. Deleted rather than localized.
Copy lives in one shared formatQuickStartMessage(), not one lookup map per surface as originally sketched. Two copies of the same sentence in the tree and the webview could only drift.
Review follow-ups, both fixed before merge: a repeat readiness timeout on resume was still leaking raw English (now reports readinessTimeout with the host environment), and whitespace-only detail could render a blank message.
Activity
tnaum-ms commentedon Aug 9, 2026
Moved to the 0.10.0 milestone.
The immediate localization gap this issue describes was already closed by #798 (
l10n.twrapping), so what remains is the architectural half: replacing the free-textStageEvent.message/StageEvent.error/QuickStartStatus.errorMessagepayloads with typed message keys and moving the copy to the presentation layer.Scope measured on the current branch: 19
stageEvent()call sites carrying literal text, 6setStatus(..., InstanceState.Error, message)sites, the webview message rendering, and the tree row description. Several messages interpolate dynamic data (ports, raw driver text), so this needs a key plus payload union rather than a bare enum, with raw driver output kept in a separate detail field that is never keyed.It will land as its own PR rather than inside #876, which is already large and touches the provisioning state machine. This issue will be referenced from that PR when the work is done.
tnaum-ms commentedon Aug 10, 2026
Done in #879, merged as
0f78cc7d.Closing manually: #879 targeted
dev/tnaum/quickstart-improvementsrather than the default branch, so theFixes #865keyword did not fire. The work reachesmainwith #876.What landed:
StageEvent.message/QuickStartStatus.errorMessagenow carry aQuickStartMessage— a key plus the data needed to phrase it (port,environment) and adetailfield for raw daemon or driver text, which is the one thing never translated.StageEvent.erroris gone. It duplicatedmessageat every call site but two, where it differed only by being undefined on abort, and the webview fell back tomessageanyway.Checking Docker…,Pulling the official image…,Creating container…,Starting container…,Waiting for DocumentDB to accept connections…) turned out to be raw English and dead — the webview labels its checklist from its ownstageLabels()map and only readsmessageon terminal events. Deleted rather than localized.formatQuickStartMessage(), not one lookup map per surface as originally sketched. Two copies of the same sentence in the tree and the webview could only drift.Review follow-ups, both fixed before merge: a repeat readiness timeout on resume was still leaking raw English (now reports
readinessTimeoutwith the host environment), and whitespace-onlydetailcould render a blank message.