# Make prettier more robust to offline work and errors \(\#3434\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a62c4845a989680acef8132730a0cfce733c335f

Requested commit: a62c4845a989680acef8132730a0cfce733c335f

Commit: a62c4845a989680acef8132730a0cfce733c335f

Tree: 1d6556287a738441593877e0217da5a4543e9397

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Make prettier more robust to offline work and errors (#3434)

Refactors prettier support:

* moves away prettier-related code into a separate module, makes
prettier installation & start phases more type-restricted
* ensures prettier installation and start attempts are capped with a
fixed attempts amount: after it's exceeded, no further attempts to
install and/or start prettier area made
* improves default prettier management, by correctly preserving its
plugin set between (re) installations and always installing the prettier
server part
* slightly improves prettier logging 

Release Notes:

- N/A
```

## Parents

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

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

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