# Fix performance issues in project search related to detecting JSX tag auto-closing \(\#30842\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8241193676afba1ceef2aa423b35473177c6be1

Requested commit: a8241193676afba1ceef2aa423b35473177c6be1

Commit: a8241193676afba1ceef2aa423b35473177c6be1

Tree: acb7c0f6dff56bbb7056a59634119ea4f23f287a

Author: Remco Smits

Committer: GitHub

## Message

```
Fix performance issues in project search related to detecting JSX tag auto-closing (#30842)

This PR changes it so we only create a snapshot and get the syntax tree
for a buffer if we didn't detect that auto_close is enabled.

<img width="1205" alt="Screenshot 2025-05-16 at 21 10 28"
src="https://github.com/user-attachments/assets/1ada445f-77bc-4c7c-bffe-953f34ee5384"
/>


Release Notes:

- Improved project search performance
```

## Parents

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

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