Smit Barmase
1dd470ca48
editor: Fix double $ sign on completion accept in PHP ( #34726 )
...
Closes #33510 https://github.com/zed-extensions/php/issues/29
If certain language servers do not provide an insert/replace range, we
use `surrounding_word` as a fallback for that range, which internally
uses `word_characters`. It makes sense to use
`completion_query_characters` instead of `word_characters` to get that
range, because we use `completion_query_characters` to query completions
in the first place.
That means, for some hypothetical reason (e.g., if the Tailwind server
stops providing insert/replace ranges), we would correctly fall back to
the range "bg-blue-200^" instead of "200^", because
`completion_query_characters` includes "-" in this case.
For this particular fix, right now the default PHP language server
`phpactor` does not provide an insert/replace range, and hence
completion query character is used, which is `$` in this case.
Note that `$` isn't in word characters for reasons mentioned here:
https://github.com/zed-extensions/php/issues/14
Release Notes:
- Fixed an issue where accepting variable completion in PHP would result
in a double $ sign in the prefix.
2025-07-18 22:39:00 +05:30
..
2025-07-18 13:17:41 +00:00
2025-07-12 15:56:05 +00:00
2025-07-17 20:46:16 -03:00
2025-07-18 13:17:41 +00:00
2025-07-08 10:43:35 -03:00
2025-07-18 18:25:36 +02:00
2025-07-18 18:25:36 +02:00
2025-06-30 21:01:32 -06:00
2025-07-11 23:20:35 +00:00
2025-05-20 23:06:07 +00:00
2025-07-09 18:05:39 +00:00
2025-07-10 19:25:10 +00:00
2025-06-26 20:54:19 +02:00
2025-07-17 13:08:20 +03:00
2025-07-17 18:12:48 -04:00
2025-05-26 21:20:41 -03:00
2025-07-09 08:57:03 +08:00
2025-07-09 08:57:03 +08:00
2025-07-03 14:22:28 +00:00
2025-07-01 12:51:09 +03:00
2025-05-30 08:32:54 -07:00
2025-06-26 20:54:19 +02:00
2025-07-10 23:35:21 +00:00
2025-06-24 05:14:15 +00:00
2025-07-15 16:37:15 +02:00
2025-07-18 18:25:36 +02:00
2025-07-18 16:28:58 +00:00
2025-07-02 21:14:33 -04:00
2025-06-30 19:25:11 -04:00
2025-07-18 10:24:57 -03:00
2025-07-17 14:25:55 +00:00
2025-07-18 18:25:36 +02:00
2025-07-12 15:56:05 +00:00
2025-07-18 14:28:03 +00:00
2025-06-15 19:51:04 +00:00
2025-07-06 14:52:16 +02:00
2025-07-12 15:56:05 +00:00
2025-07-17 17:05:58 +00:00
2025-06-25 09:42:30 +02:00
2025-07-15 18:41:45 +03:00
2025-07-15 16:39:33 +02:00
2025-07-18 22:39:00 +05:30
2025-07-15 14:22:13 -04:00
2025-07-10 21:08:43 +02:00
2025-07-10 19:25:10 +00:00
2025-07-01 20:02:12 +00:00
2025-07-15 11:07:29 +00:00
2025-07-17 12:20:47 +00:00
2025-07-16 01:15:45 -03:00
2025-07-14 16:03:19 +00:00
2025-07-02 21:14:33 -04:00
2025-07-08 14:34:57 +00:00
2025-07-12 19:04:26 +00:00
2025-06-18 16:01:28 +05:30
2025-07-17 03:39:54 +00:00
2025-06-03 12:23:01 -04:00
2025-07-17 12:39:41 +00:00
2025-06-27 14:31:31 -06:00
2025-06-17 20:26:27 +00:00
2025-07-18 16:03:08 +00:00
2025-07-03 09:50:26 -03:00
2025-07-11 21:01:09 -04:00
2025-07-14 16:03:19 +00:00
2025-07-17 14:25:55 +00:00
2025-06-03 13:18:29 +02:00
2025-07-10 19:25:10 +00:00
2025-06-20 21:28:48 +00:00
2025-07-18 18:25:36 +02:00
2025-07-17 09:22:04 +00:00
2025-07-02 21:14:33 -04:00
2025-05-17 16:42:45 +00:00
2025-06-18 16:01:28 +05:30
2025-07-02 21:14:33 -04:00
2025-07-18 22:39:00 +05:30
2025-07-10 19:25:10 +00:00
2025-07-18 18:25:36 +02:00
2025-07-18 18:25:36 +02:00
2025-07-02 21:14:33 -04:00
2025-07-18 09:25:18 -06:00
2025-07-18 13:38:18 +02:00
2025-05-20 23:06:07 +00:00
2025-07-10 14:02:00 -07:00
2025-06-17 10:43:07 -04:00
2025-07-17 15:58:54 +00:00
2025-07-02 21:14:33 -04:00
2025-07-02 21:14:33 -04:00
2025-05-20 23:06:07 +00:00
2025-07-02 21:14:33 -04:00
2025-07-09 12:38:23 +05:30
2025-06-17 10:43:07 -04:00
2025-07-16 09:10:51 -04:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-06-06 16:00:09 +00:00
2025-06-23 19:55:21 -03:00
2025-06-17 10:43:07 -04:00
2025-06-28 14:38:27 +02:00
2025-07-16 11:44:08 -04:00
2025-06-27 14:31:31 -06:00
2025-07-09 05:28:25 +05:30
2025-07-08 11:23:36 -03:00
2025-07-09 16:02:31 +00:00
2025-07-02 21:14:33 -04:00
2025-07-02 08:44:14 +00:00
2025-07-18 22:39:00 +05:30
2025-07-15 23:41:53 +05:30
2025-06-27 14:31:31 -06:00
2025-06-18 16:01:28 +05:30
2025-07-17 03:39:54 +00:00
2025-07-08 14:34:57 +00:00
2025-05-26 17:43:57 +00:00
2025-05-23 14:53:53 +00:00
2025-07-10 09:19:12 +00:00
2025-07-10 19:25:10 +00:00
2025-07-15 00:29:27 +03:00
2025-07-02 10:05:34 -04:00
2025-06-09 13:11:57 +02:00
2025-06-17 12:09:08 +02:00
2025-07-15 17:36:09 +00:00
2025-07-12 11:48:19 -03:00
2025-07-09 18:05:39 +00:00
2025-05-20 23:06:07 +00:00
2025-07-17 20:03:10 -04:00
2025-07-18 09:25:18 -06:00
2025-05-20 23:06:07 +00:00
2025-07-04 00:57:43 +00:00
2025-07-02 21:14:33 -04:00
2025-05-20 23:06:07 +00:00
2025-05-16 17:35:44 +02:00
2025-07-09 05:28:25 +05:30
2025-06-09 13:11:57 +02:00
2025-07-02 21:14:33 -04:00
2025-06-17 14:39:45 +00:00
2025-07-02 21:14:33 -04:00
2025-07-02 21:14:33 -04:00
2025-07-08 14:57:37 +00:00
2025-06-27 14:31:31 -06:00
2025-07-18 10:01:09 -04:00
2025-07-15 15:16:48 -04:00
2025-06-09 13:11:57 +02:00
2025-07-04 00:57:43 +00:00
2025-07-18 16:55:03 +00:00
2025-07-15 13:42:25 -06:00
2025-07-18 18:25:36 +02:00
2025-07-02 21:14:33 -04:00
2025-07-18 18:25:36 +02:00
2025-07-16 17:00:47 +00:00
2025-05-23 19:31:25 +00:00
2025-06-27 15:46:04 +00:00
2025-07-18 14:28:20 +00:00
2025-06-13 06:32:29 +00:00
2025-06-25 13:26:41 +00:00
2025-07-17 22:30:01 -06:00
2025-06-18 21:26:12 +00:00
2025-06-09 13:11:57 +02:00
2025-07-14 16:03:19 +00:00
2025-07-07 21:54:51 +00:00
2025-07-17 21:40:02 -03:00
2025-06-26 20:54:19 +02:00
2025-07-15 15:35:50 -04:00
2025-07-18 10:24:57 -03:00
2025-07-18 18:25:36 +02:00
2025-07-18 18:25:36 +02:00
2025-06-06 00:49:30 -06:00