Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Agents window Markdown editor: Enter on an empty task item leaves the item behind #327537

Copy link
Copy link

Description

@ulugbekna
Issue body actions

Testing #326540

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Insiders with the experimental Markdown editor
  • OS Version: macOS
  • Audited package revision: microsoft/vscode-packages@1d81418d61ad769f154579196a51a9364c105e2d

Steps to Reproduce

  1. Open a Markdown document containing an empty task item:

    - [ ] 
  2. Put the caret after the trailing space.

  3. Press Enter.

Expected

As with an empty list item, Enter removes the empty task marker and exits the list into a normal paragraph.

Actual

The empty task remains and a new regular list item is inserted:

- [ ] 
- 

Pressing Enter a second time removes the new regular marker but still leaves the original empty task item behind.

Impact

Users get stuck in an unexpected list state and accumulate empty task entries that must be cleaned up manually. The behavior also differs from regular list exit semantics, even though task items are rendered as list items.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugmarkdown-editor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.