Agent Panel: PHP autocomplete duplicates dollar sign ($$) in variables
Summary
Autocomplete for PHP variables incorrectly inserts a double dollar sign ($$) instead of a single $.
Description
Steps to reproduce the problem:
Open a PHP file in Zed.
Begin typing a variable (e.g., $no).
Accept the autocomplete suggestion for the variable (e.g., $nome).
The result is $$nome instead of $nome.
Actual Behavior: When using the autocomplete feature for PHP variables, Zed duplicates the dollar sign, resulting in $$nome. This behavior makes the code syntactically incorrect unless using variable variables, which is not the intended case.
Expected Behavior: The autocomplete should insert only the missing part of the variable and preserve the manually typed $, resulting in $nome.
LLM Provider & Model: Not applicable (this issue occurs during standard autocomplete, without AI completion).
Zed Version and System Specs
Zed: v0.186.9 (Zed) OS: Linux Wayland zorin 17 Memory: 11.2 GiB Architecture: x86_64 GPU: Intel(R) UHD Graphics (ICL GT1) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.3