-
Notifications
You must be signed in to change notification settings - Fork 71
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
DCD does not show UFCS completions #13
Comments
|
What would it take to start supporting this? We could always start with the easier non-templated-first-parameter case. This is by far the largest usability improvement I can think of. If you just point out the places in the code where to add this logic I'd be very happy to help out and start working on a PR for this. Further I would like the lookup of function definitions to work with UFCS aswell. Is there another place where this logic is defined? I'm using the Emacs interface ac-dcd to interact with DCD. |
|
If it was as simple as pointing out a single place in the code where the logic should be added, it would have been added already. I have a few ideas on how this can be implemented and I'll work on adding it for the 0.6.0 release. |
|
Pulling this from 0.6.0. |
|
Any ideas on how to move forward with this? |
|
What about this:
import std.ascii;
char c;
c. // no UFCS completion so just the type properties.
c.is // no UFCS completion, not enough chars (3 required).
c.isA // 3 chars, ok, isAlpha and isAlphaNumeric proposed. |
|
I'd be happy with that. |
|
I made some progress on the subject. You may check it here SSoulaimane/dcd@dc66681. |
|
A potential idea to filter out false positives would be to infer valid UFCS functions from existing usage. For instance, if DCD sees that This would also help with making the suggestions take into account stylistic / semantic aspects. For instance, if the user always writes |
|
Being able to just go to definiton of the function at cursor in a UFCS-call would be an amazing progress. Especially when navigating codebases such as dmd. If there are multiple overloads in multiple scopes just propose a list to choose from. Can we pleease be pragmatic and add this? It would be a great productivity enhancement. |
|
Any update here? |
#657 works partially for me. I don't think it's that difficult get it all the way. I have little time over right now, though. |
|
Why not add this feature? |
It's a bit of work completing #657. |
|
I am also very interested in this feature. I think a lot of people are using UFCS, it would be very helpful to be able to navigate to the correct file where the function is defined. |
DCD has no support for the Uniform Function Call Syntax.
The text was updated successfully, but these errors were encountered: