From a769be8668156fa27b7f4b8c82f2abea9003f204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Wed, 17 Sep 2025 22:19:06 +0800 Subject: [PATCH 1/2] Add plugin recommendation if there is a dot file . --- build.sbt | 2 +- src/main/resources/META-INF/plugin.xml | 86 +++++++++--------- src/main/resources/icons/dot.png | Bin 0 -> 2411 bytes .../sbt/analyzer/parser/DotFileType.scala | 34 +++++++ 4 files changed, 80 insertions(+), 42 deletions(-) create mode 100644 src/main/resources/icons/dot.png create mode 100644 src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala diff --git a/build.sbt b/build.sbt index e566560..97d7997 100644 --- a/build.sbt +++ b/build.sbt @@ -13,7 +13,7 @@ lazy val jbAnnotVersion = "26.0.2" // https://youtrack.jetbrains.com/articles/IDEA-A-2100661679/IntelliJ-IDEA-2023.3-Latest-Builds // NOTE: Latest-Builds 233 lazy val intellijVersion = "252.25557.131" -lazy val pluginVersion = s"0.8.1-$intellijVersion" +lazy val pluginVersion = s"0.8.2-$intellijVersion" ThisBuild / version := pluginVersion diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index a031157..465050b 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -18,9 +18,8 @@ messages.SbtDependencyAnalyzerBundle - - - + + @@ -134,15 +133,20 @@
- Visit GitHub for instructions on how to properly use this plugin!
+ Visit GitHub for instructions on how to properly use this plugin!
]]> 0.8.2-252.25557.131 +
    +
  • Add plugin recommendation if there is a dot file .
  • +
+

0.8.1-252.25557.131

    -
  • Revert xml patch and fix JA locale message.
  • +
  • Revert xml patch and fix JA locale message .

0.8.0-252.25557.131

@@ -173,109 +177,109 @@

0.5.0-242.21829.142

    -
  • Improve code and API compatibility.
  • -
  • Fix Open Config Action.
  • -
  • Add Exclude Dependency Action.
  • +
  • Improve code and API compatibility .
  • +
  • Fix Open Config Action .
  • +
  • Add Exclude Dependency Action .

0.4.0-242.21829.142

    -
  • Support IDEA 2024.2.
  • -
  • Fix Goto dependency (Now supports custom dependencies for all projects).
  • +
  • Support IDEA 2024.2 .
  • +
  • Fix Goto dependency (Now supports custom dependencies for all projects) .

0.3.1-233.11799.241

    -
  • Suppress errors and delete some errors
  • -
  • Filter ignores case
  • +
  • Suppress errors and delete some errors .
  • +
  • Filter ignores case .

0.3.0-233.11799.241

    -
  • Support IDEA 2023.3.
  • +
  • Support IDEA 2023.3 .

0.3.0-RC1-231.9392.1

    -
  • Add `sdap.sbt` to .git/info/exclude file.
  • -
  • Add Show Size to show jar package size.
  • -
  • Add shortcuts to open the analysis view: `Ctrl + Shift + L`.
  • +
  • Add `sdap.sbt` to .git/info/exclude file .
  • +
  • Add Show Size to show jar package size .
  • +
  • Add shortcuts to open the analysis view: `Ctrl + Shift + L` .

0.2.0-231.9392.1

  • Add moduleName cache.
  • -
  • Use the first non-root module when opening view (Multi-module project).
  • -
  • Update dependencies.
  • -
  • Add zh_CN message for What's new.
  • +
  • Use the first non-root module when opening view (Multi-module project) .
  • +
  • Update dependencies .
  • +
  • Add zh_CN message for What's new .

0.2.0-RC3-231.9392.1

    -
  • 🎉Add Intellij Settings.
  • +
  • 🎉Add Intellij Settings .

0.2.0-RC2-231.9392.1

    -
  • Update description and action name.
  • -
  • Add refresh snapshots button.
  • -
  • Add "project/sdap.sbt" to enable "sbt-dependency-tree", plugin no longer modify "project/plugins.sbt".
  • -
  • Improved notifications.
  • +
  • Update description and action name .
  • +
  • Add refresh snapshots button .
  • +
  • Add "project/sdap.sbt" to enable "sbt-dependency-tree", plugin no longer modify "project/plugins.sbt" .
  • +
  • Improved notifications .

0.2.0-RC1-231.9392.1

    -
  • 🎉Add locale zh_CN translation for notification.
  • -
  • 🎉Add plugin update notification.
  • -
  • 🎉Add What's New action in Help menu.
  • +
  • 🎉Add locale zh_CN translation for notification .
  • +
  • 🎉Add plugin update notification .
  • +
  • 🎉Add What's New action in Help menu .

0.1.3-231.9392.1

    -
  • Fix module recognition failure when analyzing cross-build projects for Scala2 and Scala3.
  • -
  • Improve notification,stop immediately when an exception occurs during the first task execution.
  • +
  • Fix module recognition failure when analyzing cross-build projects for Scala2 and Scala3 .
  • +
  • Improve notification,stop immediately when an exception occurs during the first task execution .

0.1.2-231.9392.1

    -
  • Improving Error Notification.
  • -
  • Support for older versions of sbt.
  • +
  • Improving Error Notification .
  • +
  • Support for older versions of sbt .
  • Other improvements.

0.1.1-231.9392.1

    -
  • Fix bug: Goto action can match scala library.
  • -
  • Add refresh action.
  • -
  • Add bootstrap prompt and automatically add the `addDependencyTreePlugin`.
  • +
  • Fix bug: Goto action can match scala library .
  • +
  • Add refresh action .
  • +
  • Add bootstrap prompt and automatically add the `addDependencyTreePlugin` .

0.1.0-231.9392.1

    -
  • Update Action Name.
  • -
  • Cache files for one hour.
  • +
  • Update Action Name .
  • +
  • Cache files for one hour .
  • Refactor code.

0.1.0-231.9392.1-M7

    -
  • 🔥Show Conflict omitted status.
  • -
  • 🔥Support Scala Js and Scala native.
  • +
  • 🔥Show Conflict omitted status .
  • +
  • 🔥Support Scala Js and Scala native .

0.1.0-231.9392.1-M6

    -
  • 🔥Highlight module dependencies.
  • +
  • 🔥Highlight module dependencies .

0.1.0-231.9392.1-M5

    -
  • 🔥Significantly improve performance.
  • +
  • 🔥Significantly improve performance .

0.1.0-231.9392.1-M4

    -
  • 🔥 First Blood.
  • +
  • 🔥 First Blood .
]]>
diff --git a/src/main/resources/icons/dot.png b/src/main/resources/icons/dot.png new file mode 100644 index 0000000000000000000000000000000000000000..c0ccdec51c19565c69305289666077f5b10f5f80 GIT binary patch literal 2411 zcmb7G2UHW;8vdiOK?qF(*Sh@zsjPz6JmfVd)JK%@j4MNo>NC{kT% z3M*|X0xF0iQbYj@5D;kwb~by~qx;S~``(b11B1#fZdV2tzd^vRBFm+rW z^L2thf<>B#@@6*Sn&?NmX83^9{vp+&il-8yzB!mH25o6^H!R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`eMz;p2piLMhox}4(wlYLT&yk_=Rw8$-Q%G<*)R5+BB_3JHj7-^p(rhQN|OK!kjku->j7O{}ejhDZp zqaa{cDX}=qts510guU9rdHkS0tB89m_Zs?PZPnbqRDU~puHgECFRk)D^&Dy+?lDds zAME05SjQZh@;jZ6>WriwJ>i=ob>oES{rmpD?LU*MH)8aJ%N2B~*|(CrH_mu|wsLeH z5nwB+uCMwMumX97#p9eL5?caRK4R$2klyurM#QbYVQ#WTV3Ej!1vBJ2 z_W;Yx{5JtO015!w|Mv5*QSwIx+jpfA+sHuX05kxee#d|BZSBAC-)p`COaTx9#sCnj z$SnlEU}kOx5dYBtCli|fNd7B2$y6Y7C<)-nEFs5aSOC14@LL9?I%30ziIM&a)66%w zqX4g&`ab4-{>39&WGjJ;;+yQR&OgRJ{~v;X=>JEE6hbmHkg8|Ou1X;R6>Mj{5A@#+ zAbS=-x$ZGD1`4Y<0Rfvx1V`jUih0yISG$n-EW^Qa? zFZ9&SS&|R0a&wbcbBa%sbg4$LY8qjO84HCqd10dpivgac(UAoOqSYvRf$rBE$a7$B LVr^Vv=p6kAF>1_@ literal 0 HcmV?d00001 diff --git a/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala b/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala new file mode 100644 index 0000000..17444fa --- /dev/null +++ b/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala @@ -0,0 +1,34 @@ +package bitlap.sbt.analyzer.parser + +import javax.swing.Icon + +import bitlap.sbt.analyzer.SbtDependencyAnalyzerIcons + +import org.jetbrains.annotations.NotNull +import org.jetbrains.annotations.Nullable + +import com.intellij.lang.Language +import com.intellij.openapi.fileTypes.LanguageFileType +import com.intellij.openapi.util.IconLoader + +object DotIcons { + val FILE: Icon = IconLoader.getIcon("/icons/dot.png", SbtDependencyAnalyzerIcons.getClass) +} + +object DotLanguage { + val INSTANCE = new DotLanguage +} + +final class DotLanguage private extends Language("Dot") + +final class DotFileType extends LanguageFileType(DotLanguage.INSTANCE) { + + @NotNull def getName: String = "dot file" + + @NotNull def getDescription: String = "dot language file" + + @NotNull def getDefaultExtension: String = "dot" + + @Nullable def getIcon: Icon = DotIcons.FILE + +} From e5c00d9ebfa7f3a568ad81282e6a6b259e9d0c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Wed, 17 Sep 2025 22:56:53 +0800 Subject: [PATCH 2/2] Add plugin recommendation if there is a dot file . --- src/main/resources/META-INF/plugin.xml | 2 +- .../scala/bitlap/sbt/analyzer/parser/DotFileType.scala | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 465050b..e6044d3 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -19,7 +19,7 @@ - + diff --git a/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala b/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala index 17444fa..6006780 100644 --- a/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala +++ b/src/main/scala/bitlap/sbt/analyzer/parser/DotFileType.scala @@ -21,14 +21,18 @@ object DotLanguage { final class DotLanguage private extends Language("Dot") -final class DotFileType extends LanguageFileType(DotLanguage.INSTANCE) { +final class DotFileType private extends LanguageFileType(DotLanguage.INSTANCE) { - @NotNull def getName: String = "dot file" + @NotNull def getName: String = "dependency dot file" - @NotNull def getDescription: String = "dot language file" + @NotNull def getDescription: String = "Sbt generated the dependency dot file" @NotNull def getDefaultExtension: String = "dot" @Nullable def getIcon: Icon = DotIcons.FILE } + +object DotFileType { + val INSTANCE = new DotFileType +}