# Use buffer language when formatting with Prettier \(\#43368\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bad6bde03a1789b80ffc13c5d8c066746017b013

Requested commit: bad6bde03a1789b80ffc13c5d8c066746017b013

Commit: bad6bde03a1789b80ffc13c5d8c066746017b013

Tree: 514112207f2e93bcd1e214d6998d759b03ea4261

Author: John Gibb

Committer: GitHub

## Message

```
Use buffer language when formatting with Prettier (#43368)

Set `prettier_parser` explicitly if the file extension for the buffer
does not match a known one for the current language

Release Notes:

- N/A

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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