From 4a27fdbbd58286c8c7a9c9b0cbc6c007055ef326 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 13 Jun 2014 13:50:36 +0400 Subject: [PATCH] do not log PCE --- .../editor/highlighter/EditorHighlighterFactoryImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/editor-ui-ex/src/com/intellij/openapi/editor/highlighter/EditorHighlighterFactoryImpl.java b/platform/editor-ui-ex/src/com/intellij/openapi/editor/highlighter/EditorHighlighterFactoryImpl.java index e0d91f62eadc..e90693927d34 100644 --- a/platform/editor-ui-ex/src/com/intellij/openapi/editor/highlighter/EditorHighlighterFactoryImpl.java +++ b/platform/editor-ui-ex/src/com/intellij/openapi/editor/highlighter/EditorHighlighterFactoryImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import com.intellij.openapi.editor.colors.EditorColorsScheme; import com.intellij.openapi.editor.ex.util.LexerEditorHighlighter; import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.fileTypes.*; +import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.psi.LanguageSubstitutors; @@ -77,6 +78,9 @@ public class EditorHighlighterFactoryImpl extends EditorHighlighterFactory { try { return FileTypeEditorHighlighterProviders.INSTANCE.forFileType(fileType).getEditorHighlighter(project, fileType, vFile, settings); } + catch (ProcessCanceledException e) { + throw e; + } catch (Exception e) { LOG.error(e); }