Language Support plug-in, Code-completion

Milian Wolff mail at milianw.de
Thu Sep 1 12:19:53 UTC 2011


On Wednesday 31 August 2011 17:27:55 Łukasz Kucharski wrote:
> Hi all,

Hey there! Might I ask which language you are working on? If you want, you can 
work on that in KDE's git using a personal repo. This way we can better help 
you as well, as we can easily access the code if required and do changes.

> I have a question regarding Code Completion and text replacement in editor
> upon item selection (execute).
> 
> I'm dealing with language where it is not allowed to have '()' for
> function invocation which have empty argument list.
> 
> Unfortunately when code-completion prepares item and item with function
> declaration is selected (execute method is invoked) also '()' is added at
> the end.
> 
> Guys do you know how to change this behavior? (or maybe you know where is
> code that inserts '()')

In PHP at least I think it's completion/item.cpp -> 
NormalDeclarationCompletionItem::executed which calls insertFunctionParenText.

bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110901/7a712fad/attachment.sig>


More information about the KDevelop-devel mailing list