Skip to content

Commit

Permalink
Fix inputting :
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Mar 2, 2024
1 parent 52dcd1b commit b58e1d3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public List<CompletionSuggestion> getSuggestionsFor(final List<T> entries, final

final TokenRange suggestionRange = replacementRange.rangeAtPosition(position);
final String suggestionFrom = suggestionRange.substring(currentToken, position);
if(!replacementRange.contains(position)) {
return List.of();
}
final int suggestionIndex = replacementRange.rangeIndexAtPosition(position);
return switch(suggestionIndex) {
case 0 -> getSuggestionsForComponent(
Expand Down

0 comments on commit b58e1d3

Please sign in to comment.