# Enable formatting feature of JSON language server · gitcafe/zed

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

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

Visibility: public

Requested revision: 9999862016e5fdc345e6abd8ac967e58ec172022

Requested commit: 9999862016e5fdc345e6abd8ac967e58ec172022

Commit: 9999862016e5fdc345e6abd8ac967e58ec172022

Tree: 97a23836a630532c304e9a64f670c1dd450598bb

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Enable formatting feature of JSON language server

The feature doesn't work yet because the JSON language server
only supports *range* formatting, not document formatting.
We need to adjust our code to inspect the server's capabilities
and send range formatting requests instead when needed.

We're going to hold off on doing this right now, because it
will create merge conflicts with the `preserve-worktrees`
branch (#525)

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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