# Add support for auto-closing of JSX tags \(\#25681\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ff25fa24e7ac93cf7bb7a92075dd03e175c3c805)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ff25fa24e7ac93cf7bb7a92075dd03e175c3c805

Requested commit: ff25fa24e7ac93cf7bb7a92075dd03e175c3c805

Commit: ff25fa24e7ac93cf7bb7a92075dd03e175c3c805

Tree: eba2623cedc5df85043f4b845ee1bd5b4399d594

Author: Ben Kunkle

Committer: GitHub

## Message

```
Add support for  auto-closing of JSX tags (#25681)

Closes #4271

Implemented by kicking of a task on the main thread at the end of
`Editor::handle_input` which waits for the buffer to be re-parsed before
checking if JSX tag completion possible based on the recent edits, and
if it is then it spawns a task on the background thread to generate the
edits to be auto-applied to the buffer

Release Notes:

- Added support for auto-closing of JSX tags

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Max Brunsfeld <max@zed.dev>
Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Peter Tripp <peter@zed.dev>
```

## Parents

- [05df3d1bd649212819d2ba73fd19350b69ad22f5](https://git.cafe/gitcafe/zed/commit/05df3d1bd649212819d2ba73fd19350b69ad22f5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ff25fa24e7ac93cf7bb7a92075dd03e175c3c805?format=markdown)
