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..

1
正式评论

Implement your CompletionContributor, and it will receive CompletionType
in CompletionParameters

Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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

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

0

Great! Thanks! this works fine.

0

请先登录再写评论。