# Improve TS and JS symbol outline \(\#39797\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 94c28ba14afb812d748409ed93f930911b56d2f7

Requested commit: 94c28ba14afb812d748409ed93f930911b56d2f7

Commit: 94c28ba14afb812d748409ed93f930911b56d2f7

Tree: bd0d50ae2acf2f81f3e33107dce3f2dfe9df6d7b

Author: Daniel Wargh

Committer: GitHub

## Message

```
Improve TS and JS symbol outline (#39797)

Added more granular symbols for ts and js in outline panel. This is a
bit closer to what vscode offers.

<details><summary>Screenshots of current vs new</summary>
<p>
New:
<img width="1723" height="1221" alt="image"
src="https://github.com/user-attachments/assets/796d3b59-fffa-4a66-9986-f7c75e618103"
/>

Current:
<img width="1714" height="1347" alt="image"
src="https://github.com/user-attachments/assets/f7cff463-de2a-4d86-b1a6-e19f4fd8dc6e"
/>

Current vscode (cursor):
<img width="1710" height="1177" alt="image"
src="https://github.com/user-attachments/assets/31902d52-becf-4d3f-960d-7e054e00e32d"
/>

</p>
</details> 

I have never touched scheme before, and pair-programmed this with ai, so
please let me know if there's any glaring issues with the
implementation. I just miss the outline panel in vscode very much, and
would love to see this land.
Happy to help with tsx/jsx as well if this is the direction you guys
were thinking of taking the outline impl.

Doesn't fully close https://github.com/zed-industries/zed/issues/20964
as there is no support for chained class method callbacks or
`Class.prototype.method = ...` as mentioned in
https://github.com/zed-industries/zed/issues/21243, but this is a step
forward.

Release Notes:

- Improved typescript and javascript symbol outline panel
```

## Parents

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

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