zed/crates/markdown_preview
Danilo Leal e1e7676b5a
ui: Improve performance in the CopyButton component (#47292)
This PR improves the performance of the `CopyButton` component by
tracking the copied state locally through a `CopyButtonState` struct
instead of making an OS call every time the component re-renders. Also
pushing a slight improvement here by resetting the state after two
seconds so as to make the check mark go away after you clicked to copy.

Release Notes:

- N/A
2026-01-21 13:40:42 -03:00
..
src ui: Improve performance in the CopyButton component (#47292) 2026-01-21 13:40:42 -03:00
Cargo.toml Use single languages::{rust_lang, markdown_lang} in tests across the codebase (#44282) 2025-12-06 18:49:21 +00:00
LICENSE-GPL