Files
oak-gpui/crates
KyleBarton 6bdd2cf7db Consider the colon to be a word character when inside a string in JSON (#26574)
Partially addresses #25698

Part of why autocomplete suggestions for `keymap.json` aren't great is
because `:` is (correctly) considered a punctuation character, rather
than a word character, in JSON. But since `::` is part of the name of
zed commands, it means that the autocomplete context window loses
context after the user types colon:

Suggestion here is to use overrides for JSON and JSONC such that colon
is considered a word character when it's inside a string. This improves
the experience:

I believe this is more broadly correct anyway, since `:` loses it's
punctuation meaning when inside a string.

Hope this is helpful!

Release Notes:

- Improved autocomplete for keymap.json by treating `::` like word characters when inside a string.
2025-03-13 16:21:34 -04:00
..
2025-03-06 05:20:06 +00:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-01-27 13:40:59 -05:00
2025-03-12 07:25:19 +00:00
2025-03-10 13:38:30 -06:00
2025-02-28 18:33:35 +01:00
2025-02-28 18:33:35 +01:00
2025-03-10 13:38:30 -06:00
2025-03-11 21:39:29 +00:00
2025-03-10 13:38:30 -06:00
2025-03-12 19:39:30 +00:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-03-10 13:19:02 -07:00
2025-03-12 13:48:13 -06:00
2025-03-10 13:38:30 -06:00