-
Notifications
You must be signed in to change notification settings - Fork 6
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
ede-php-autoload-complete-type-name a bit odd #26
Comments
Regarding the completion only returning the last part of the namespace, this was made like this to ease the integration with semantic. Maybe |
It could... I'll try hacking about a bit and try it out. It returning "." as part of files is a bug, right? |
I never noticed the "." stuff... This is not wanted for sure |
I think the "." is only triggered by completing on a subdirectory. I had a quick look but got entirely sidetracked, so I thought I'd just report in.. I'd really like to work from a failing test, but discovered that
While not really related to the problem at hand, there should probably be some tests covering this. |
I've created #27 which addresses both the "No such file or directory" issue and the "." issue. Back at the issue at hand: I've managed to get
I'll only check the columns given and ignore the rest (I'm very proud of myself on that one). Now it's "just" a matter of filling out the tests and make sure that |
PR merged |
Trying to use
ede-php-autoload-complete-type-name
for completion is a bit of a challenge, for PSR-4 at least.At first it returns full namespaces, but when traversing down, it only returns the last component. Instinctively, I'd expect it to either complete single components all the way, or return the full namespace (which is easier to deal with in a completion engine). Any objections against it returning the full name?
Secondly, I could use some information on the completions, whether its a directory or file, for colorization, later on, but I guess that's out of scope for
ede-php-autoload-complete-type-name
? Any tricks for how to determine whether a string would end in a class file, or require further expansion?The text was updated successfully, but these errors were encountered: