From 9795f3da1f4eb96af65936d67fe272f7022611ce Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 9 Nov 2024 14:21:04 +0100 Subject: [PATCH] remove dependency balloon notification --- .../org/move/cli/MoveProjectsSyncTask.kt | 21 ++++++++++--------- .../org/move/ide/notifications/Utils.kt | 18 ---------------- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/src/main/kotlin/org/move/cli/MoveProjectsSyncTask.kt b/src/main/kotlin/org/move/cli/MoveProjectsSyncTask.kt index 12ecb5ac3..47ec18380 100644 --- a/src/main/kotlin/org/move/cli/MoveProjectsSyncTask.kt +++ b/src/main/kotlin/org/move/cli/MoveProjectsSyncTask.kt @@ -36,6 +36,7 @@ import org.move.cli.manifest.MoveToml import org.move.cli.settings.getAptosCli import org.move.cli.settings.moveSettings import org.move.ide.notifications.showBalloon +import org.move.ide.notifications.showDebugBalloon import org.move.lang.toNioPathOrNull import org.move.lang.toTomlFile import org.move.openapiext.TaskResult @@ -298,16 +299,16 @@ class MoveProjectsSyncTask( parsedDeps = parsedDeps.withExtended(rootMoveToml.dev_deps) } for ((dep, addressMap) in parsedDeps) { - val depRoot = dep.rootDirectory() - if (depRoot == null) { - // root does not exist - project.showBalloon( - "Cannot resolve the ${dep.name.quote()} dependency. " + - "Root directory does not exist.", - ERROR - ) - continue - } + val depRoot = dep.rootDirectory() ?: continue +// if (depRoot == null) { +// // root does not exist +// project.showDebugBalloon( +// title = "Cannot resolve the ${dep.name.quote()} dependency.", +// content = "Root directory does not exist.", +// ERROR +// ) +// continue +// } val depId = DepId(depRoot.path) if (depId in visitedIds) continue diff --git a/src/main/kotlin/org/move/ide/notifications/Utils.kt b/src/main/kotlin/org/move/ide/notifications/Utils.kt index c1f6ca13c..102774f7c 100644 --- a/src/main/kotlin/org/move/ide/notifications/Utils.kt +++ b/src/main/kotlin/org/move/ide/notifications/Utils.kt @@ -33,24 +33,6 @@ fun Logger.logOrShowBalloon(@NotificationContent content: String, productionLeve } } -fun Project.showDebugBalloon( - @NotificationContent content: String, - type: NotificationType, - action: AnAction? = null -) { - if (isDebugModeEnabled()) { - showBalloon(content, type, action) - } -} - -fun Project.showBalloon( - @NotificationContent content: String, - type: NotificationType, - action: AnAction? = null -) { - showBalloon("", content, type, action) -} - fun Project.showBalloon( @NotificationTitle title: String, @NotificationContent content: String,