# Decouple theme license generation from TypeScript theme definitions \(\#3917\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c7c874a371f0a85ad4bc098340a239603f36cc85

Requested commit: c7c874a371f0a85ad4bc098340a239603f36cc85

Commit: c7c874a371f0a85ad4bc098340a239603f36cc85

Tree: 3db0b5e55c6de14467f14a6ea360f373a3303e46

Author: Marshall Bowers

Committer: GitHub

## Message

```
Decouple theme license generation from TypeScript theme definitions (#3917)

This PR decouples the generation of licenses for the themes we ship from
the TypeScript theme definitions.

For now, we are embedding the license information for the themes in the
`theme_importer`, and emit a combined `LICENSES` file in the `theme`
crate whenever we import themes. This is also where we check that each
theme has a valid license.

We then use this `LICENSES` file when building up the global license
file for Zed.

This decoupling is one step towards us being able to delete the old Zed1
styles.

Release Notes:

- N/A
```

## Parents

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

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