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
Add native single-cell Copy menus and typed value formats to Table and Tree #1160
This issue tracks the single-target part of F-4, implemented in draft #1171 alongside #1103. Range-aware native menus moved to #1174 and depend on rectangular Table selection and TSV copy in #1158.
Use native VS Code context menus for Table and Tree. Pointer actions target the clicked cell or header; Shift+F10 and the Context Menu key target the focused one. Dismissing a menu restores prior grid focus when VS Code returns focus to the page body. Do not change row selection or add inert Cut/Paste entries.
Copy the exact visible header, Tree Field, or Tree Type label. The default for Table data and Tree Value cells is the full Shell Literal; Copy As also offers Display Text and Extended JSON (Canonical). Display Text is explicit rather than the default. Canonical Extended JSON preserves only BSON type information available from the driver.
Resolve the underlying value against the rendered page using an opaque address, without scraping previews, refetching, or requiring _id. Missing, stale, and unresolvable values make no clipboard write, in keeping with the accepted single-target behavior. Preserve null and empty strings as distinct values.
Cover object previews and full containers, BSON types, projected-away IDs, empty-page headers, stale addresses, and pointer/keyboard targeting. Automated checks passed; confirm the actual VS Code native menu, submenu navigation, and focus return before closure.
A useful end-to-end fixture is an object cell whose displayed preview omits a third field, inside a projection with _id: 0. “Copy display text” should copy exactly the preview; an explicit full/typed-value command should include the third field with the original type, or explain why the result is no longer available. No View/Edit eligibility is required just to copy a read-only value. #1103 owns the one-cell baseline and #1158 owns the rectangle.
changed the title [-]#grid [4/4] Add native selection-aware Copy menus and typed value formats[/-][+]#grid [4/4] Add native selection-aware Copy menus and typed value formats #rdg[/+]on Dec 1, 2026
changed the title [-]#grid [4/4] Add native selection-aware Copy menus and typed value formats #rdg[/-][+]Add native single-cell Copy menus and typed value formats to Table and Tree[/+]on Dec 3, 2026
Scope split:#1171 implements the single-target slice: native Table/Tree Copy menus, label-specific actions, full cached values, Copy As, and keyboard invocation/focus restoration. Display text is still available explicitly; Shell Literal is the default. Stale or missing targets leave the clipboard unchanged rather than copying a preview or showing an error.
Remaining work:#1174 tracks the range-aware menu (including right-clicking inside a rectangle without collapsing it), after #1158 delivers rectangular selection and TSV copy. #1160 can close when #1171 merges; actual VS Code verification of Shift+F10, submenu navigation, and focus return is still outstanding.
Activity
tnaum-ms commentedon Dec 1, 2026
A useful end-to-end fixture is an object cell whose displayed preview omits a third field, inside a projection with
_id: 0. “Copy display text” should copy exactly the preview; an explicit full/typed-value command should include the third field with the original type, or explain why the result is no longer available. No View/Edit eligibility is required just to copy a read-only value. #1103 owns the one-cell baseline and #1158 owns the rectangle.[-]#grid [4/4] Add native selection-aware Copy menus and typed value formats[/-][+]#grid [4/4] Add native selection-aware Copy menus and typed value formats #rdg[/+][-]#grid [4/4] Add native selection-aware Copy menus and typed value formats #rdg[/-][+]Add native single-cell Copy menus and typed value formats to Table and Tree[/+]tnaum-ms commentedon Dec 3, 2026
Scope split: #1171 implements the single-target slice: native Table/Tree Copy menus, label-specific actions, full cached values, Copy As, and keyboard invocation/focus restoration. Display text is still available explicitly; Shell Literal is the default. Stale or missing targets leave the clipboard unchanged rather than copying a preview or showing an error.
Remaining work: #1174 tracks the range-aware menu (including right-clicking inside a rectangle without collapsing it), after #1158 delivers rectangular selection and TSV copy. #1160 can close when #1171 merges; actual VS Code verification of Shift+F10, submenu navigation, and focus return is still outstanding.