Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB 2 Jupyter Kernel
Commits
0da30b79
Commit
0da30b79
authored
1 year ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Update CommandUtils.bExpressionCompleter to new command API
parent
d684f3ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/prob2/jupyter/CommandUtils.java
+2
-2
2 additions, 2 deletions
src/main/java/de/prob2/jupyter/CommandUtils.java
with
2 additions
and
2 deletions
src/main/java/de/prob2/jupyter/CommandUtils.java
+
2
−
2
View file @
0da30b79
...
...
@@ -406,14 +406,14 @@ public final class CommandUtils {
}
final
CompleteIdentifierCommand
cmdExact
=
new
CompleteIdentifierCommand
(
prefix
);
cmdExact
.
set
Keyword
s
(
CompleteIdentifierCommand
.
KeywordContext
.
ALL
);
cmdExact
.
add
Keyword
Context
(
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
.
set
Keyword
s
(
CompleteIdentifierCommand
.
KeywordContext
.
ALL
);
cmdIgnoreCase
.
add
Keyword
Context
(
CompleteIdentifierCommand
.
KeywordContext
.
ALL
);
trace
.
getStateSpace
().
execute
(
cmdIgnoreCase
);
completions
.
addAll
(
cmdIgnoreCase
.
getCompletions
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment