do not start external ann pass on no change

This commit is contained in:
Alexey Kudravtsev
2012-03-20 13:42:52 +04:00
parent 5d7dacca34
commit a2493cd391
@@ -54,7 +54,7 @@ public class ExternalToolPassFactory extends AbstractProjectComponent implements
@Override
@Nullable
public TextEditorHighlightingPass createHighlightingPass(@NotNull PsiFile file, @NotNull final Editor editor) {
TextRange textRange = file.getTextRange();
TextRange textRange = FileStatusMap.getDirtyTextRange(editor, Pass.EXTERNAL_TOOLS) == null ? null : file.getTextRange();
if (textRange == null || !externalAnnotatorsDefined(file)) {
return null;
}