Code completion

In getVarants() I return PsiMethod-elements. In most cases it works
flawlessy but sometimes an additional semicolon is inserted after the
method call.
This happens when the selected method contains parameters.
Eq. having method
public int getter()
public void setter(int value)
when selecting the 'getter' from the popup list, it simply inserts
getter()|
but when selecting 'setter', it inserts
setter(|);

The cursor is nicely placed to enter the parameters but I need to
get rid of the trailing semicolon.

3 comments

This looks like a bug (only in Java we should place the semicolon);
rework for code completion is already planned for next version.

Eugene.

"Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
news:dk7orj$gvp$1@is.intellij.net...

In getVarants() I return PsiMethod-elements. In most cases it works
flawlessy but sometimes an additional semicolon is inserted after the
method call.
This happens when the selected method contains parameters.
Eq. having method
public int getter()
public void setter(int value)
when selecting the 'getter' from the popup list, it simply inserts
getter()|
but when selecting 'setter', it inserts
setter(|);

>

The cursor is nicely placed to enter the parameters but I need to
get rid of the trailing semicolon.



0

Should I file an issue or is it already on your todo list?

Eugene Vigdorchik (JetBrains) schrieb:

This looks like a bug (only in Java we should place the semicolon);
rework for code completion is already planned for next version.

0

It is already planned for 6.0.

"Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
news:dk9rij$900$2@is.intellij.net...

Should I file an issue or is it already on your todo list?

>

Eugene Vigdorchik (JetBrains) schrieb:

>> This looks like a bug (only in Java we should place the semicolon);
>> rework for code completion is already planned for next version.


0

Please sign in to leave a comment.