Skip to content

Commit

Permalink
Merge pull request #2291 from Haehnchen/feature/asset-double
Browse files Browse the repository at this point in the history
prevent twig template asset to be handled twice
  • Loading branch information
Haehnchen authored Mar 2, 2024
2 parents 2d699c3 + 7bad173 commit b37623b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,8 @@ private static class PhpProxyForTwigTypCompletionProvider extends CompletionProv
@Override
protected void addCompletions(@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) {
PsiElement prevSibling = PsiElementUtils.getPrevSiblingOfType(parameters.getPosition(), PlatformPatterns.psiElement(TwigTokenTypes.IDENTIFIER));
if (prevSibling == null) {
// "asset" are already known
if (prevSibling == null || "asset".equals(prevSibling.getText())) {
return;
}

Expand Down

0 comments on commit b37623b

Please sign in to comment.