https://kotlinlang.org logo
#intellij
Title
# intellij
x

Xiang Rong LIn

08/25/2022, 12:03 PM
Can I temporarily add a dummy PsiElement to the document during an refactoring action, if so how? Background: I'm currently working on expanding the refactoring action to introduce constants to companion objects. The extraction engine works, by providing it a sibling element of the target location. In the case of an empty companion object there is not sibling. So I want to add a temporary sibling and remove it after the extraction action is done
a

Alexey Belkov [JB]

08/26/2022, 7:32 AM
Hi, the best place to ask such questions is the JetBrains Platform Slack: https://plugins.jetbrains.com/slack
👍 1
5 Views