-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate text edit replacement range #213
Comments
I had added this function as temporary solution: https://github.com/felixfbecker/php-language-server/blob/master/src/utils.php#L109 The best way in the future will be to simply use the range of the node under the cursor and replace that. But that depends on nikic/PHP-Parser#322, because things like a method name in a I can revisit completion when https://github.com/felixfbecker/php-language-server/projects/2 are all closed |
You are using |
Yes, as I said, it only works for a prefix. But it could be easily modified to emit a |
|
Completion items returned by PHP language server are mostly missing text edit field. This field is very useful for client side to filter/insert completion. It also improves user experience a lot.
@felixfbecker I'm not sure if you plan to work with this in near future. If not maybe as an temporary solution we can use method I created for my old completion PR [1]. Its not perfect but should do the job.
[1] https://github.com/felixfbecker/php-language-server/pull/38/files#diff-5794964d5fd1d9db05834acbd6155f4dR48
The text was updated successfully, but these errors were encountered: