Use actual import list on PlainTextPaste
#EA-225256 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
30f98e6730
commit
a9444c386d
@@ -68,9 +68,11 @@ class PlainTextPasteImportResolver(private val dataForConversion: DataForConvers
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun addImport(importStatement: PsiImportStatementBase, shouldAddToTarget: Boolean = false) {
|
private fun addImport(importStatement: PsiImportStatementBase, shouldAddToTarget: Boolean = false) {
|
||||||
importList.add(importStatement)
|
file.importList?.let {
|
||||||
if (shouldAddToTarget)
|
it.add(importStatement)
|
||||||
addedImports.add(importStatement)
|
if (shouldAddToTarget)
|
||||||
|
addedImports.add(importStatement)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addImportsFromTargetFile() {
|
fun addImportsFromTargetFile() {
|
||||||
|
|||||||
Reference in New Issue
Block a user