assistant2: Highlight crease on selection (#24358)

Give the inline file crease inside of `assistant2`'s editor a
selection background when there is a selection over it

Release Notes:

- N/A

---------

Co-authored-by: Piotr <piotr@zed.dev>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
João Marcos 2025-02-20 13:25:08 -03:00 committed by GitHub
parent 78a8002415
commit f609abb48c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 24 deletions

View file

@ -1142,7 +1142,7 @@ impl Editor {
let editor = cx.entity().downgrade();
let fold_placeholder = FoldPlaceholder {
constrain_width: true,
render: Arc::new(move |fold_id, fold_range, _, cx| {
render: Arc::new(move |fold_id, fold_range, cx| {
let editor = editor.clone();
div()
.id(fold_id)