From 77e8bef673c0aa0d679161aea06f7aafb983977e Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 14 Sep 2022 10:45:36 +0200 Subject: [PATCH] EA-658823 T: TodoCheckinHandlerWorker.execute GitOrigin-RevId: 3047e208a652659cde02f2041edee6cad24ddc0f --- .../openapi/vcs/checkin/TodoCheckinHandlerWorker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java index dc347620e3c1..6b32c634e480 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java @@ -91,9 +91,9 @@ public class TodoCheckinHandlerWorker { FilePath afterFilePath = afterRevision.getFile(); VirtualFile afterFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(afterFilePath.getPath()); - progress(afterFile != null ? ProjectUtil.calcRelativeToProjectPath(afterFile, myProject) : afterFilePath.getName()); - EditedFileProcessorBase fileProcessor = ReadAction.compute(() -> { + progress(afterFile != null ? ProjectUtil.calcRelativeToProjectPath(afterFile, myProject) : afterFilePath.getName()); + if (afterFile == null || afterFile.isDirectory() || afterFile.getFileType().isBinary()) { return null; // skip detection }