From 0da30b79bae6fae5f9f8130465dfe2b919c5cfbf Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:38:16 +0100 Subject: [PATCH] Update CommandUtils.bExpressionCompleter to new command API --- src/main/java/de/prob2/jupyter/CommandUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/prob2/jupyter/CommandUtils.java b/src/main/java/de/prob2/jupyter/CommandUtils.java index 1c173bd..09d582d 100644 --- a/src/main/java/de/prob2/jupyter/CommandUtils.java +++ b/src/main/java/de/prob2/jupyter/CommandUtils.java @@ -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()); -- GitLab