-
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
Incorrect additionalTextEdit applied when auto-importing PHP namespaces #757
Comments
Sorry, but this cannot be fixed with sublime’s completion API - it does not tell us which completion item was chosen/inserted. Our workaround does a lookup by inserted string, but obviously cannot differentiate between your two ‘App’ imports. Thanks for the detailed report, hope it’s workable for you otherwise! |
Can the new Sublime api for autocompleton handle this? If so can we reopen the issue? |
Yes the new API allows to fix this issue. I would re-open as well but label it for ST4 |
Good point, I guess you are referring to using a command with the completion item? I like to keep the issue list as relevant as possible, so I personally don't see the point of opening this issue until manpower shows up to work on ST4000 features. |
yes the completion item. I am willing to work on this topic, can we have a |
Yes, feel free to create a PR to the |
Thanks |
Supposedly fixed by #866 (won't be available for ST3). |
src/First
andsrc/Second
foldersAcme\First\App
andAcme\Second\App
Acme/Start
try writing App in a function. It will show two App instance,Acme\First\App
andAcme\Second\App
.use Acme\First\App
when I clearly selected the second (tried using tab or enter, doesnt matter)From the logs, it's clearly seen that the use expression is correct for the different classes. It just that it always uses the first one and there is no way to import the second namespace
The text was updated successfully, but these errors were encountered: