Skip to content

Preserve ordered checklist numbering after editing and saving #82

Closed

Description

@BinaryOutlook

Editing an ordered checklist in #80 changes it into an unordered list after saving and reopening. Preserve the list type and authored start value when checkbox items are serialized.

Priority: P2 / Medium — fix before merging #80. This regression was demonstrated against baseline 41ea238a99aea72b197fa33dc1001bd9ef09a0e5: baseline retained the ordered list type, although its separate start-number defect renumbered it.

Reproduction and findings

Open this synthetic source in visual mode:

3. [ ] Alpha
4. [x] Beta

Append ! to Beta, invoke Save, close the editor and reopen the file. The installed VSIX saves:

- [ ] Alpha
- [x] Beta!

Expected: 3. [ ] Alpha and 4. [x] Beta! remain an ordered checklist. A separate browser probe also found that mixed task/ordinary ordered items split into separate unordered and ordered lists.

Scope and acceptance criteria

  • Preserve ordered versus unordered list ownership, start values, and continuation indentation when serializing task items.
  • Cover text edits and checkbox toggles in ordered, nested, and mixed task/ordinary lists.
  • Verify undo/redo, Source mode, unrelated neighboring content, and exact native save/reopen results.
  • Keep ordinary unordered checklists and the plain ordered-start behavior working.

This is related to #75 but is not a duplicate: #75 tracks ordinary ordered starts; this case changes the list kind because it contains checkboxes.

Source evidence

New task recognition recognizes markers in any list item, while task serialization hardcodes the - [ prefix whenever an item contains a checkbox.

Build identity and verification boundary

Recorded during the 2026-09-27 audit of #80 at ffbdad524d393aa783760f4829cb995d8b9d6405 (package version 0.4.0), using Node 24.21.0 on macOS ARM64. The tested product source was unmodified. This is an unreleased development snapshot.

Reproduced in the installed VSIX with VS Code 1.138.0 using an isolated owned profile and synthetic documents. Package SHA-256: b813d91c719b8530ea2bbce18dcf924fd605ed7fc0f689d2b5a2f1305d3092fe. These are native host/filesystem observations; other operating systems were not retested for this case.

Reproduce and validate changes using the checkout's build guide and testing guide. Keep evidence synthetic and sanitized.

Activity

  1. added
    bug
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions