Skip to content
Snippets Groups Projects
Commit 0da30b79 authored by dgelessus's avatar dgelessus
Browse files

Update CommandUtils.bExpressionCompleter to new command API

parent d684f3ac
No related branches found
No related tags found
No related merge requests found
......@@ -406,14 +406,14 @@ public final class CommandUtils {
}
final CompleteIdentifierCommand cmdExact = new CompleteIdentifierCommand(prefix);
cmdExact.setKeywords(CompleteIdentifierCommand.KeywordContext.ALL);
cmdExact.addKeywordContext(CompleteIdentifierCommand.KeywordContext.ALL);
trace.getStateSpace().execute(cmdExact);
// Use LinkedHashSet to remove duplicates while maintaining order.
final Set<String> completions = new LinkedHashSet<>(cmdExact.getCompletions());
final CompleteIdentifierCommand cmdIgnoreCase = new CompleteIdentifierCommand(prefix);
cmdIgnoreCase.setIgnoreCase(true);
cmdIgnoreCase.setKeywords(CompleteIdentifierCommand.KeywordContext.ALL);
cmdIgnoreCase.addKeywordContext(CompleteIdentifierCommand.KeywordContext.ALL);
trace.getStateSpace().execute(cmdIgnoreCase);
completions.addAll(cmdIgnoreCase.getCompletions());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment