Merge branch 'master' of github.com:alibaba/arthas

pull/668/head^2
hengyunabc 6 years ago
commit e6d21ea8a4

@ -180,8 +180,20 @@ public class JadCommand extends AnnotatedCommand {
@Override
public void complete(Completion completion) {
if (!CompletionUtils.completeClassName(completion)) {
super.complete(completion);
int argumentIndex = CompletionUtils.detectArgumentIndex(completion);
if (argumentIndex == 1) {
if (!CompletionUtils.completeClassName(completion)) {
super.complete(completion);
}
return;
} else if (argumentIndex == 2) {
if (!CompletionUtils.completeMethodName(completion)) {
super.complete(completion);
}
return;
}
super.complete(completion);
}
}

Loading…
Cancel
Save