Files
zed/crates/languages
Alex 279fe070bb languages: Fix JSON completion order for settings keys (#65139)
## Summary

Closes #64341

Typing `"status` in settings.json puts `show_call_status_icon` above
`status_bar`.

json-language-server includes quotes in `filterText` (`"status_bar"`),
but the search query doesn't. Since #62433, this means a match at the
start of the key gets a lower score than it should.

This strips the quotes in the JSON adapter's `process_completions`,
following the Python adapter. Insertion is unchanged.

Enum values like `"dark"` and `"system_dark"` have the same problem, but
their quotes come from the label. I'll handle those in a separate PR.

Before / after:

| Before | After |
|---|---|
|
![before](https://gist.githubusercontent.com/ragen1337/82464ddeeada40d7e3e018ed2278bf0d/raw/fc4ec492eb8e08bd9326b3f16333b00f0ef33c56/before.png)
|
![after](https://gist.githubusercontent.com/ragen1337/82464ddeeada40d7e3e018ed2278bf0d/raw/086ee3c6e34e081e5dee568dabe311930fe0e9a9/after.png)
|

## Testing

Added a unit test. `cargo test -p languages` and `cargo test -p editor`
pass.

Checked on macOS: typing `"status` in settings.json now puts
`status_bar` first. Selecting it inserts the same text as before.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- Fixed JSON completion ordering when typing the start of a key.
2026-10-04 23:59:55 +00:00
..
2026-09-17 08:49:31 +00:00