mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tab completion shouldn't overwrite ) in groovy named arguments
This commit is contained in:
+2
-1
@@ -134,7 +134,8 @@ public class GrArgumentLabelImpl extends GroovyPsiElementImpl implements GrArgum
|
||||
}
|
||||
|
||||
public PsiReference getReference() {
|
||||
return this;
|
||||
final PsiElement name = getNameElement();
|
||||
return name instanceof GrLiteral || name instanceof LeafPsiElement ? this : null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
+12
@@ -516,6 +516,18 @@ in<caret>"""
|
||||
myFixture.checkResult "def x = []; x.add(<caret>) this"
|
||||
}
|
||||
|
||||
public void testEatingClosingParenthesis() {
|
||||
checkCompletion """
|
||||
def xxxx = []
|
||||
def xxxy = []
|
||||
foo((xx<caret>):2)
|
||||
""", '\t', """
|
||||
def xxxx = []
|
||||
def xxxy = []
|
||||
foo((xxxx<caret>):2)
|
||||
"""
|
||||
}
|
||||
|
||||
public void testDontAddStaticImportSecondTime() {
|
||||
configure """import static java.lang.String.format
|
||||
form<caret>"""
|
||||
|
||||
Reference in New Issue
Block a user