Revert "KT-38841 Remove redundant preparePsiElementForWrite call"
This reverts commit 165b62da
Something went wrong with the AS40 build
This commit is contained in:
committed by
Roman Golyshev
parent
12db3d6e83
commit
3903814c9c
@@ -99,6 +99,7 @@ abstract class SelfTargetingIntention<TElement : PsiElement>(
|
||||
final override fun invoke(project: Project, editor: Editor?, file: PsiFile) {
|
||||
editor ?: return
|
||||
val target = getTarget(editor, file) ?: return
|
||||
if (!FileModificationService.getInstance().preparePsiElementForWrite(target)) return
|
||||
applyTo(target, editor)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user