How to determine what type of code completion was invoked

In my implementation of PsiReference.getVariants() I need to find out what type of code completion was issued. (Basic, SmartType...)
Does anyone has an idea how to do that. Appreciate any help..

6 comments
Comment actions Permalink

Does somebody know how to do this?
Maybe, there is another extension point for these purposes or a plugin with this functionality?

0
Comment actions Permalink

SmartCodeCompletionAction.isDoingSmartCodeCompleteAction()

Alex Orishchenko wrote:

Any directions how to do this?


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

0
Comment actions Permalink

Any idea how to do this with 8.0 (Diana)?
What happen to SmartCodeCompletionAction.isDoingSmartCodeCompleteAction()?

0
Comment actions Permalink

Implement your CompletionContributor, and it will receive CompletionType
in CompletionParameters

0
Comment actions Permalink

Great! Thanks! this works fine.

0

Please sign in to leave a comment.