Skip to content

Commit

Permalink
Allow generic snippets to be computed when completion token is null.
Browse files Browse the repository at this point in the history
- Fixes redhat-developer/vscode-java#3466

Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Jan 22, 2024
1 parent 8f0f822 commit d52965e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private static List<CompletionItem> getGenericSnippets(SnippetCompletionContext
CompletionContext completionContext = scc.getCompletionContext();
char[] completionToken = completionContext.getToken();
if (completionToken == null) {
return Collections.emptyList();
completionToken = new char[0];
}
int tokenLocation = completionContext.getTokenLocation();
JavaContextType contextType = null;
Expand Down

0 comments on commit d52965e

Please sign in to comment.