From 33cdefffe38726e9c7ce304310ccd0e2d009e8d2 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Tue, 7 Oct 2014 17:42:19 +0400 Subject: [PATCH] Do not log ProcessCanceledException in copy paste reference processor It is rethrown and leads to inability to copy code #KT-5426 --- .../codeInsight/KotlinCopyPasteReferenceProcessor.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/codeInsight/KotlinCopyPasteReferenceProcessor.kt b/idea/src/org/jetbrains/jet/plugin/codeInsight/KotlinCopyPasteReferenceProcessor.kt index 291e292c2e5..5acc5286605 100644 --- a/idea/src/org/jetbrains/jet/plugin/codeInsight/KotlinCopyPasteReferenceProcessor.kt +++ b/idea/src/org/jetbrains/jet/plugin/codeInsight/KotlinCopyPasteReferenceProcessor.kt @@ -63,6 +63,7 @@ import org.jetbrains.jet.lang.psi.psiUtil.getReceiverExpression import org.jetbrains.jet.utils.* import org.jetbrains.jet.renderer.DescriptorRenderer import org.jetbrains.jet.lang.resolve.descriptorUtil.isExtension +import com.intellij.openapi.progress.ProcessCanceledException //NOTE: this class is based on CopyPasteReferenceProcessor and JavaCopyPasteReferenceProcessor public class KotlinCopyPasteReferenceProcessor() : CopyPastePostProcessor() { @@ -106,6 +107,12 @@ public class KotlinCopyPasteReferenceProcessor() : CopyPastePostProcessor