mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-188244 diff: fix dir-diff type detection for jar files in a project
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user