# Ensure default prettier installs correctly when certain FS entries are missing \(\#8261\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a588f674db84b69fc29bc14542b4137e17fbb516

Requested commit: a588f674db84b69fc29bc14542b4137e17fbb516

Commit: a588f674db84b69fc29bc14542b4137e17fbb516

Tree: b2fcacb392a6af9c4318651f177bfebc9051a8b5

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Ensure default prettier installs correctly when certain FS entries are missing (#8261)

Fixes https://github.com/zed-industries/zed/issues/7865

* bind default prettier (re)installation decision to
`prettier_server.js` existence
* ensure the `prettier_server.js` file is created last, after all
default prettier packages installed
* ensure that default prettier directory exists before installing the
packages
* reinstall default prettier if the `prettier_server.js` file is
different from what Zed expects

Release Notes:

- Fixed incorrect default prettier installation process
```

## Parents

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

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