Review Request: Display of many function overloads in code completion

Milian Wolff mail at milianw.de
Mon May 3 23:19:24 UTC 2010



> On 2010-04-15 16:11:23, Milian Wolff wrote:
> > trunk/extragear/sdk/kdevelop/languages/cpp/codecompletion/context.h, line 60
> > <http://reviewboard.kde.org/r/3612/diff/1/?file=23620#file23620line60>
> >
> >     what's the difference between fullCompletion and automaticInvocation?
> >     
> >     imo you want to check against fullCompletion, no need for the additional parameter
> 
> Thomas Schöps wrote:
>     The difference between the parameters is that fullCompletion is always true if the KDevelop Language support setting "Level" is set to "Always Full Completion", whether the completion is invoked automatically or not. The new parameter gives this information.
>     
>     I think that the argument hints whose behavior I want to change with the patch (those above the cursor) are not shown if fullCompletion is false, so it wouldn't make sense to check against it. To implement that all overloads are only shown if the completion is invoked manually (like discussed in the bug report), the additional parameter is needed.
>     
>     But as the completion is currently not invoked automatically after '(', leaving it out and assuming false would yield the same result for now.

I still think this is wrong. The list should _always_ be limited. It probably also explains what I said below, i.e. that I got 20 function hints (far too much!) since I always use ctrl + space.

one _never_ wants to have the screen full of tons of overloads. if we'd support scrolling there it can be debated eventually, but now you should remove the additional argument.


- Milian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3612/#review5065
-----------------------------------------------------------


On 2010-04-15 14:29:12, Thomas Schöps wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3612/
> -----------------------------------------------------------
> 
> (Updated 2010-04-15 14:29:12)
> 
> 
> Review request for KDevelop.
> 
> 
> Summary
> -------
> 
> I tried to fix this:
> https://bugs.kde.org/show_bug.cgi?id=215206
> 
> With the patch, Ctrl+Space always shows all overloads, while automatic invocation of code completion shows the first 5 overloads and possibly "x more overloads of y".
> Currently, the automatic invocation case doesn't happen because automatic code completion after '(' is disabled.
> It would be even better if the "more overloads" item would be clickable to reveal the remaining items, but I don't know how to implement this and as it isn't shown currently, it's probably not too important.
> 
> I've never coded on KDevelop/KDevplatform or even a KDE app before, so please check the patch carefully and tell me if that is not the correct way to implement it ;-)
> 
> 
> Diffs
> -----
> 
>   trunk/extragear/sdk/kdevelop/languages/cpp/codecompletion/context.h 1115078 
>   trunk/extragear/sdk/kdevelop/languages/cpp/codecompletion/context.cpp 1115078 
>   trunk/extragear/sdk/kdevplatform/language/codecompletion/codecompletioncontext.h 1115078 
>   trunk/extragear/sdk/kdevplatform/language/codecompletion/codecompletionmodel.cpp 1115078 
>   trunk/extragear/sdk/kdevplatform/language/codecompletion/codecompletionworker.h 1115078 
>   trunk/extragear/sdk/kdevplatform/language/codecompletion/codecompletionworker.cpp 1115078 
> 
> Diff: http://reviewboard.kde.org/r/3612/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Thomas
> 
>





More information about the KDevelop-devel mailing list