AtomMaterialUI / Image-Icon-Viewer

Preview images and icons directly from the Project View in IntelliJ products
MIT License
8 stars 0 forks source link

Prevent deletion/squash/rebase inside IntelliJ #63

Open LAinox001 opened 4 months ago

LAinox001 commented 4 months ago

Describe the bug Having the plugin active prevent deleting an image file. Also, while wanting to squash commits/rebase with an image file commited, it prevents the squash/rebase to finish saying that there is an untracked file that needs to be moved or removed. It is not the case for all images, that's what is strange.

To Reproduce

  1. Select a file in the project tree
  2. Delete it (by mouse or delete key)
  3. If it worked, CTRL+Z
  4. Delete it again
  5. Should fail

For squash :

  1. Select two commits with one that has an image
  2. Squash
  3. Should fail saying that there is an untracked file

Expected Behavior Should not block the user from deleting, squashing or rebasing

Environment IntelliJ IDEA 2024.1.1 (Ultimate Edition) Build #IU-241.15989.150, built on April 29, 2024 Licensed to XXX / XXX Subscription is active until January 31, 2025. Runtime version: 17.0.10+1-b1207.14 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 20 Registry: ide.balloon.shadow.size=0 ide.new.editor.tabs.vertical.borders=true ide.animate.toolwindows=true ide.experimental.ui=true ide.editor.tab.selection.animation=true ide.images.show.chessboard=true Non-Bundled Plugins: com.mallowigi.imageicon (14.0.0) com.github.patou.gitmoji (1.14.0) lermitage.intellij.extratci (1.35.0) com.intellij.ml.llm (241.15989.195) com.intellij.aqua (241.15989.199) gherkin (241.14494.150) com.intellij.mermaid (0.0.22+IJ.232) com.mallowigi (97.0.0) mobi.hsz.idea.gitignore (4.5.3) izhangzhihao.rainbow.brackets (2024.2.3-241) org.mapstruct.intellij (1.7.0) com.chrisrm.idea.MaterialThemeUI (9.3.1) io.nimbly.tzatziki (17.4.0) zielu.gittoolbox (500.2.8+233) Kotlin: 241.15989.150-IJ

Screenshots

image image