Copy: Do not check conflicts for cross-project copying

#KT-19949 Fixed
 #KT-19972 Fixed
 #EA-105637 Fixed
This commit is contained in:
Alexey Sedunov
2017-09-19 20:22:29 +03:00
parent 6e59cc2140
commit e87f9633be
@@ -313,7 +313,7 @@ class CopyKotlinDeclarationsHandler : CopyHandlerDelegateBase() {
if (!(isUnitTestMode && BaseRefactoringProcessor.ConflictsInTestsException.isTestIgnore())) {
val targetSourceRootPsi = targetSourceRoot?.toPsiDirectory(project)
if (targetSourceRootPsi != null) {
if (targetSourceRootPsi != null && project == originalFile.project) {
val conflictChecker = MoveConflictChecker(
project,
elementsToCopy,