Commit 6b89ee76 authored by Aleksey Pivovarov's avatar Aleksey Pivovarov
Browse files

IDEA-188244 diff: fix dir-diff type detection for jar files in a project

parent 542d0ad8
Branches unavailable Tags unavailable
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -164,8 +164,8 @@ public class CompareFilesAction extends BaseShowDiffAction {
@NotNull
private static Type getType(@Nullable VirtualFile file) {
if (file == null) return Type.FILE;
if (file.isDirectory()) return Type.DIRECTORY;
if (file.getFileType() instanceof ArchiveFileType) return Type.ARCHIVE;
if (file.isDirectory()) return Type.DIRECTORY;
return Type.FILE;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment