# language: Reset pooled tree-sitter parsers after cancellation \(\#55866\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8e4c329ee32ab651c9c5107d329d993b8d043795

Requested commit: 8e4c329ee32ab651c9c5107d329d993b8d043795

Commit: 8e4c329ee32ab651c9c5107d329d993b8d043795

Tree: c84172a6006c258e10aa071e17ddd77d63a4c9aa

Author: Ben Brandt

Committer: GitHub

## Message

```
language: Reset pooled tree-sitter parsers after cancellation (#55866)

It seems new cancellation behavior in tree-sitter caused at least one
issue for a user.
Attempting to proactively reset before any parser use to make sure
things are clean.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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