Need CompletionVariant help

Does the CompletionVariant constructor parameter is completion dialog auto activation symbol?

What do the CompletionVariant.includeScopeClass() parameters mean? Seems, if first parameter is the LeafPsiElement.class then completion works in attribute values but doesn't complete tag names (because tag isn't leaf element). Am I right?

How completion work if plugin register two CompletionVariant's?

3 comments
Comment actions Permalink

Completion is not Open API. It is strongly recommended to use
meta/reference providers in order to do completion.

Alexei wrote:

Does the CompletionVariant constructor parameter is completion dialog auto activation symbol?

What do the CompletionVariant.includeScopeClass() parameters mean? Seems, if first parameter is the LeafPsiElement.class then completion works in attribute values but doesn't complete tag names (because tag isn't leaf element). Am I right?

How completion work if plugin register two CompletionVariant's?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Do you mean the com.intellij.psi.impl.source.resolve.reference.PsiReferenceProvider interface?

0
Comment actions Permalink

Alexei wrote:

Do you mean the com.intellij.psi.impl.source.resolve.reference.PsiReferenceProvider interface?


Yes, and ReferenceProviderRegistry.

0

Please sign in to leave a comment.