# Update JavaScript outline queries \(\#2596\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 738b06a778699feb3015b313c15868104546f642

Requested commit: 738b06a778699feb3015b313c15868104546f642

Commit: 738b06a778699feb3015b313c15868104546f642

Tree: 3fed0f34fcbd789f6e9bc91ba41e1fa8c3b3565b

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Update JavaScript outline queries (#2596)

Add support for exported const declarations in the outline view. Did not
include more context (e.g., whether or not the it's exported or not)
because we're not doing that for TypeScript right now. We could do that
in a follow up pull request, addressing both JavaScript and TypeScript
at once.


**Before**

<img width="1186" alt="outline-before"
src="https://github.com/zed-industries/zed/assets/503025/e72b0ed4-52b0-4a7c-af70-b2f4758e3554">

**After**

<img width="1186" alt="outline-after"
src="https://github.com/zed-industries/zed/assets/503025/cd91bc7f-8ce3-485f-9b33-d487ad6c718d">


Release Notes:

- Added support for exported const declarations in the JavaScript
outline view. Fixed
[#1399](https://github.com/zed-industries/community/issues/1399).
```

## Parents

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

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

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