gpui-component/crates/ui
Andreas Johansson 8fcf5f337d
input: Fix resetting highlighting for single line code editor (#1742)
## Description

When using `set_value` with a `code_editor("lang").multi_line(false)`
the highlighting and lsp will not be reset.

## Video

### Before

https://github.com/user-attachments/assets/5fef5b6e-478e-4233-a911-e087f889040a

### After

https://github.com/user-attachments/assets/3ea99060-8dba-4604-9d3f-c151b3aadcf2

## How to Test

`cargo run --release -- input`, enter some text in "Single line code
editor", click "Reset"

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2025-12-05 09:53:07 +08:00
..
locales setting: Add Settings component. (#1632) 2025-11-20 13:51:44 +00:00
src input: Fix resetting highlighting for single line code editor (#1742) 2025-12-05 09:53:07 +08:00
tests/fixtures story: Use uniform_list for scroll example. (#1709) 2025-12-01 11:07:29 +08:00
Cargo.toml Bump v0.5.0-preview2 2025-12-02 17:12:49 +08:00
LICENSE-APACHE chore: Hard link crates/ui/LICENSE-APACHE. 2025-11-04 17:54:14 +08:00