# Add initial \`package.json\` scripts task autodetection \(\#32497\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9c513223c4441ee8f5c3c713081c59e1bdb6e867

Requested commit: 9c513223c4441ee8f5c3c713081c59e1bdb6e867

Commit: 9c513223c4441ee8f5c3c713081c59e1bdb6e867

Tree: d1c5a0e7a8dd9f33f38315ae593218f153df3514

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add initial `package.json` scripts task autodetection (#32497)

Now, every JS/TS-related file will get their package.json script
contents added as tasks:

<img width="1020" alt="image"
src="https://github.com/user-attachments/assets/5bf80f80-fd72-4ba8-8ccf-418872895a25"
/>

To achieve that, `fn associated_tasks` from the `ContextProvider` was
made asynchronous and the related code adjusted.

Release Notes:

- Added initial `package.json` scripts task autodetection

---------

Co-authored-by: Piotr Osiewicz <piotr@zed.dev>
```

## Parents

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

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