Fix completion of params that involve conversion

Fixes #170
This commit is contained in:
Eric Bottard
2017-10-16 15:44:33 +02:00
parent bdeea83d8b
commit b81b695382

View File

@@ -361,11 +361,8 @@ public class StandardParameterResolver implements ParameterResolver {
}
}
catch (Exception e) {
unfinished = e;
set = false;
// Most likely what is already typed would fail resolution (eg type conversion failure)
// Exit early and let other parameters have a chance at being proposed
return Collections.emptyList();
return argumentKeysThatStartWithContextPrefix(methodParameter, context);
}
// There are 4 possible cases:
@@ -378,7 +375,8 @@ public class StandardParameterResolver implements ParameterResolver {
// key
if (!set) {
if (unfinished == null) { // case 1 above
if (unfinished == null) {
// case 1 above
return argumentKeysThatStartWithContextPrefix(methodParameter, context);
} // case 2
else {