diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateToggleAction.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateToggleAction.java index d8fd71ecacb0..a7e3c22fd180 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateToggleAction.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/actions/AnnotateToggleAction.java @@ -26,6 +26,7 @@ import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.fileEditor.FileEditorManager; import com.intellij.openapi.fileEditor.TextEditor; import com.intellij.openapi.localVcs.UpToDateLineNumberProvider; +import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.progress.Task; @@ -193,6 +194,9 @@ public class AnnotateToggleAction extends ToggleAction implements DumbAware, Ann catch (VcsException e) { exceptionRef.set(e); } + catch (ProcessCanceledException pce) { + throw pce; + } catch (Throwable t) { exceptionRef.set(new VcsException(t)); } diff --git a/plugins/git4idea/src/git4idea/annotate/GitAnnotationProvider.java b/plugins/git4idea/src/git4idea/annotate/GitAnnotationProvider.java index 889bc10ae056..d4185a4273d6 100644 --- a/plugins/git4idea/src/git4idea/annotate/GitAnnotationProvider.java +++ b/plugins/git4idea/src/git4idea/annotate/GitAnnotationProvider.java @@ -17,6 +17,7 @@ package git4idea.annotate; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.diagnostic.Logger; +import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.project.Project; @@ -87,6 +88,9 @@ public class GitAnnotationProvider implements AnnotationProviderEx, VcsCacheable final GitFileAnnotation result = annotate(realFilePath, revisionNumber, revisions, file); annotation[0] = result; } + catch (ProcessCanceledException pce) { + throw pce; + } catch (Exception e) { exception[0] = e; }