Repository navigation
Description
Stage 2 — Discoverable GUI editing
Synopsis
New users should encounter the existing formatting capabilities in the normal interface rather than beginning with them hidden. Make the standard formatting toolbar visible by default while retaining the cleaner Simple mode.
End goal
Bold, italic, strikethrough, and inline-code formatting are discoverable and usable immediately; an explicit user choice of Simple mode remains respected.
Start after
No prerequisite issue. This work can start independently from freshly fetched origin/main; stage numbering does not require waiting for every earlier milestone. Use the repository's dedicated feature-branch/worktree workflow and record the actual base revision.
Current evidence
The source already contains formatting controls and shared actions, while the contributed toolbarMode setting defaults to simple. This is an approved visibility/default and layout change, not a request to replace the formatting engine.
Source-inspected baseline: 19b276f3b819b9549e3a9e06d2dc967d8187ec06. Recheck the relevant code on the actual implementation base. No current runtime pass or implementation completion is claimed by this issue.
Agreed scope
- Keep the existing setting identifiers and stored
full/simplevalues compatible. - Make the standard/full interface the default for an unset preference; preserve explicit user, workspace, and supported scoped choices, including Simple.
- Document the deliberate default migration for existing users who relied on the previous unset default. Do not claim an unset preference proves a new installation.
- Reuse existing formatting commands and selection/undo behavior; underline is delivered by its separate issue.
Acceptance criteria
- With no explicit toolbar setting, ordinary formatting controls are visible in both editor hosts; explicit Simple mode remains simple after update/reopen.
- Bold, italic, strikethrough, and inline-code controls act on the retained selection with correct enablement and undo behavior.
- Narrow panes and zoom changes retain access to every general action without partially clipped buttons or overlap with fixed utilities.
- Selection, active editing state, content, and existing user settings remain intact when changing toolbar mode.
- The manifest, Electron defaults/settings, localization catalogs, and documentation agree on the default and migration behavior.
Verification
- Exercise an unset preference, explicit Simple, explicit Full, and applicable user/workspace overrides in a packaged extension; test corresponding Electron behavior.
- Cover text in paragraphs, list items, table cells, and nested formatting; check focus retention when clicking the toolbar.
- Show light/dark and narrow/wide rendered states, and run focused formatting/selection regressions.
Source pointers
package.jsonsrc/shared/settings-provider.tssrc/shared/editor-body-html.jssrc/webview/editor.jssrc/webview/styles.csssrc/editorProvider.tselectron/src/settings-manager.tspackage.nls.jsonsrc/i18n/locales
Delivery contract
Implement the shared editor behavior in both VS Code and Electron. View-only settings/actions must preserve Markdown, selection/editing context, clean state, and undo history. For new or changed settings, keep host wiring, manifest descriptions, all supported translations, and documentation consistent. Preserve existing identifiers and defaults except for the deliberate changes specified above.
Work from the repository root using the Node version in .node-version and the maintained instructions in CONTRIBUTING.md, docs/building.md, and docs/testing/README.md; export changes also follow docs/export-verification.md. Run full compilation after webview JavaScript/CSS, shared-module, or translation changes, plus checks that exercise the changed behavior. Rebuild and reinstall for installed-extension evidence. Report failures/skips honestly; follow required CI and review gates. Update affected documentation and review any committed Markdown in source and rendered form.
Link the PR or investigation to this issue. Keep remediation on the same focused work item where practical. Completion requires the stated evidence and accepted outcome; opening a draft PR does not complete the issue. No deadline or assignee is imposed by this issue.
Activity