mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 15:10:34 +01:00
279fe070bb
## 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 | |---|---| |  |  | ## 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.