From 42dca8ba9f1142a5aa404debba37917a671cbbeb Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 2 Jan 2019 10:32:16 +0100 Subject: [PATCH] ftl mad testing: don't check completion duplicates in HTML --- .../intellij/testFramework/propertyBased/InvokeCompletion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeCompletion.java b/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeCompletion.java index 974862b4dcb1..8f3cf2f9bd1f 100644 --- a/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeCompletion.java +++ b/platform/testFramework/src/com/intellij/testFramework/propertyBased/InvokeCompletion.java @@ -110,7 +110,7 @@ public class InvokeCompletion extends ActionOnFile { String expectedVariant = leaf == null || leaf instanceof PsiPlainText ? null : myPolicy.getExpectedVariant(editor, file, leaf, ref); boolean prefixEqualsExpected = isPrefixEqualToExpectedVariant(caretOffset, leaf, ref, expectedVariant); - boolean shouldCheckDuplicates = myPolicy.shouldCheckDuplicates(editor, file, leaf); + boolean shouldCheckDuplicates = myPolicy.shouldCheckDuplicates(editor, file, file.findElementAt(caretOffset)); long stampBefore = getDocument().getModificationStamp(); new CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(getProject(), editor);