Skip to content

In the Streaming Markdown Parse demo, setting the text to empty does not seem to take effect. #1893

@fireyy

Description

@fireyy

Description

self.markdown_state.update(cx, |state, cx| {
state.set_text("", cx);
});

state.set_text does not seem to clear the text.

Environment

  • GPUI: [main]
  • GPUI Component: [main]
  • Platform: [Windows 11]

Steps to Reproduce

  1. Go to 'Streaming Markdown Parse demo'
  2. Click on 'Replay'
  3. Scroll down
  4. Click on 'Replay' again
  5. See output

Screenshots

1_compressed.webm

Expected

When outputting again, the previous text was cleared.

Actual

When outputting again, the previous text was not cleared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions