How to determine what type of code completion was invoked Follow
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..
Please sign in to leave a comment.
Does somebody know how to do this?
Maybe, there is another extension point for these purposes or a plugin with this functionality?
SmartCodeCompletionAction.isDoingSmartCodeCompleteAction()
Alex Orishchenko wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
cool! :)
Any idea how to do this with 8.0 (Diana)?
What happen to SmartCodeCompletionAction.isDoingSmartCodeCompleteAction()?
Implement your CompletionContributor, and it will receive CompletionType
in CompletionParameters
Great! Thanks! this works fine.