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..
请先登录再写评论。
Implement your CompletionContributor, and it will receive CompletionType
in CompletionParameters
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()?
Great! Thanks! this works fine.