mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
groovy: don't suggest methods/fields after new
This commit is contained in:
+3
-1
@@ -308,7 +308,9 @@ public class GroovyCompletionContributor extends CompletionContributor {
|
||||
});
|
||||
|
||||
if (reference.getQualifier() == null) {
|
||||
GroovySmartCompletionContributor.addExpectedClassMembers(parameters, result);
|
||||
if (!GroovySmartCompletionContributor.AFTER_NEW.accepts(position)) {
|
||||
GroovySmartCompletionContributor.addExpectedClassMembers(parameters, result);
|
||||
}
|
||||
|
||||
if (isClassNamePossible(position) && JavaCompletionContributor.mayStartClassName(result)) {
|
||||
result.stopHere();
|
||||
|
||||
+3
-1
@@ -283,7 +283,9 @@ Abcdefg <caret>'''
|
||||
void foo(File... files) { }
|
||||
foo(new <caret>)
|
||||
'''
|
||||
type 'File('
|
||||
type 'File'
|
||||
myFixture.assertPreferredCompletionItems 0, 'File', 'File', 'FileInputStream'
|
||||
type '('
|
||||
assert myFixture.editor.document.text.contains('new File()')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user