| Summary: | [chain] extend subsequence/subwords search range to next level | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | Recommenders | Assignee: | Marcel Bruch <marcel.bruch> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P4 | CC: | deepakazad, kutschke.michael, Lars.Vogel, stefan.henss |
| Version: | unspecified | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Lars Vogel
I'm not sure I understand your request completely. Assuming there is a method call chain for foo, say, foo.someBar().someOtherBar().someBaz() What do you want to code completion to return given which prefix? I've *think* you are asking for something like foo.baz<Shift+Ctrl+Space> --> finds 'foo.someBar().someOtherBar().someBaz()' But I may be wrong. Yes. And if use foo.some -> <Shift+Ctrl+Space> --> finds: 'foo.someBar()' 'foo.someBar().someOtherBar()' 'foo.someBar().someOtherBar().someBaz()' If there are performance issues with going through the full stack <Shift+Ctrl+Space> could only trigger the next extension level. Adding Stefan. He's going to refine the call completion algorithm and may consider this in his reimplementation. This feature is prioritized little below the feature requests listed in Bug 376796. *** Bug 387862 has been marked as a duplicate of this bug. *** Not only should Subwords extended but I think Chain Completion should work similar to Subwords. Example: Person p = test.tp -> trigger Call chain should now return methods which match to tp AND return an object of type Person. The required bits to make chain completion work like subwords are in place. One just needs to update the isPrefix method of the chain completion proposal to create one string like getPerson().getAdress().getStreet() --> getPersonGetAdressGetStreet and then apply the Subwords matcher on this string. Syntax highlighting will be little more complicated but feasible. Gerrit Patch welcome. Please reopen if you plan to work on this. |