Maybe it will fix EA-67317
This commit is contained in:
@@ -161,6 +161,8 @@ public class JetAddImportAction(
|
|||||||
PsiDocumentManager.getInstance(project).commitAllDocuments()
|
PsiDocumentManager.getInstance(project).commitAllDocuments()
|
||||||
|
|
||||||
project.executeWriteCommand(QuickFixBundle.message("add.import")) {
|
project.executeWriteCommand(QuickFixBundle.message("add.import")) {
|
||||||
|
if (!element.isValid()) return@executeWriteCommand
|
||||||
|
|
||||||
val file = element.getContainingFile() as JetFile
|
val file = element.getContainingFile() as JetFile
|
||||||
val descriptor = selectedVariant.descriptorToImport
|
val descriptor = selectedVariant.descriptorToImport
|
||||||
// for class or package we use ShortenReferences because we not necessary insert an import but may want to insert partly qualified name
|
// for class or package we use ShortenReferences because we not necessary insert an import but may want to insert partly qualified name
|
||||||
|
|||||||
Reference in New Issue
Block a user