# Add a syntax tree view, for developing and debugging language support \(\#2601\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8542911eecd03eaa6f8a4d8a4dd760c254720a8e

Requested commit: 8542911eecd03eaa6f8a4d8a4dd760c254720a8e

Commit: 8542911eecd03eaa6f8a4d8a4dd760c254720a8e

Tree: 3e01c38ad5f9e46412788bfddd827e99d8c00957

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Add a syntax tree view, for developing and debugging language support (#2601)

This PR adds a syntax tree view, which lets you view the syntax tree of
any layer in the active editor's `SyntaxMap`.

This view uses some new APIs that I added to Tree-sitter, which allow us
to efficiently render the syntax tree using a `UniformList`. Tree-sitter
PR: https://github.com/tree-sitter/tree-sitter/pull/2316

![Screen Shot 2023-06-12 at 3 33 36
PM](https://github.com/zed-industries/zed/assets/326587/2a27ee7b-bf29-4b3b-bfa8-fb47f97a2785)

Release Notes:

- Added a *syntax tree view* that shows Zed's internal syntax tree(s)
for the active editor. You can open it running the `debug: open syntax
tree view` command from the command palette.
```

## Parents

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

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

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