-
Notifications
You must be signed in to change notification settings - Fork 14
Improve method auto-completion writing parameter names #37
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
Comments
Indeed, I had this idea. I have already done that inside tern.java |
I have implemented this feature. It works like JDT Recommenders: the completion items which are shown, matche prefix with "longest continuous sequence" (and not with starts with) like JDT does. If you have Neon, you will have highlight. Here a demo: @micaelgallego @piotrtomiak do you think we must have a preference to choose completion wich works with "starts with"? |
Awesome work ;)... But I prefer to stay as close to JDT as possible to reduce the uncanny valley when working with Java and TypeScript in the same project. |
You mean that it is OK. If yes can I close this issue? |
I think it would be good to have a preference to choose between this behavior and "starts with" behavior. But it is up to you ;) |
Ok but this behaviour is now with JDT Eclipse Neon |
Ahhh... I didn't understand you sorry ;) Then close the issue ;) |
In JDT when you select a method from autocomplete list, parenthesis are written to code, and the parameter names (from documentation or source code) are written also. The parameters are also selected to edit them. Moreover, in methods with several parameters, every parameter is boxed and developer can navigate with tab key between them. I think TypeScript should have the same behavior. For now, only the method name is written to the file.
The text was updated successfully, but these errors were encountered: