Skip to content

Commit 01f57a0

Browse files
committed
fix: project specific notifications
1 parent a886906 commit 01f57a0

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

plugin/src/main/kotlin/spp/jetbrains/sourcemarker/SourceMarkerPlugin.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import io.vertx.serviceproxy.ServiceProxyBuilder
5959
import kotlinx.coroutines.*
6060
import liveplugin.implementation.LivePluginProjectLoader
6161
import org.apache.commons.text.CaseUtils
62+
import spp.jetbrains.PluginBundle.message
6263
import spp.jetbrains.UserData
6364
import spp.jetbrains.marker.SourceMarker
6465
import spp.jetbrains.marker.jvm.ArtifactSearch
@@ -69,7 +70,6 @@ import spp.jetbrains.marker.source.mark.api.filter.CreateSourceMarkFilter
6970
import spp.jetbrains.monitor.skywalking.SkywalkingMonitor
7071
import spp.jetbrains.plugin.LivePluginService
7172
import spp.jetbrains.plugin.LiveStatusManager
72-
import spp.jetbrains.PluginBundle.message
7373
import spp.jetbrains.sourcemarker.activities.PluginSourceMarkerStartupActivity.Companion.INTELLIJ_PRODUCT_CODES
7474
import spp.jetbrains.sourcemarker.command.ControlBarController
7575
import spp.jetbrains.sourcemarker.mark.PluginSourceMarkEventListener
@@ -203,7 +203,8 @@ class SourceMarkerPlugin(val project: Project) {
203203
message("plugin_name"), "Connection established",
204204
"You have successfully connected. $pluginName is now fully activated.",
205205
NotificationType.INFORMATION
206-
)
206+
),
207+
project
207208
)
208209
config.notifiedConnection = true
209210

@@ -519,7 +520,8 @@ class SourceMarkerPlugin(val project: Project) {
519520
message("plugin_name"), "Connection auto-established",
520521
"You have successfully auto-connected to Live Platform. ${message("plugin_name")} is now fully activated.",
521522
NotificationType.INFORMATION
522-
)
523+
),
524+
project
523525
)
524526
} else if (resp.statusCode() == 405) {
525527
//found skywalking OAP server
@@ -538,7 +540,8 @@ class SourceMarkerPlugin(val project: Project) {
538540
message("plugin_name"), "Connection auto-established",
539541
"You have successfully auto-connected to Apache SkyWalking. ${message("plugin_name")} is now fully activated.",
540542
NotificationType.INFORMATION
541-
)
543+
),
544+
project
542545
)
543546
}
544547
}

plugin/src/main/kotlin/spp/jetbrains/sourcemarker/activities/PluginSourceMarkerStartupActivity.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import com.intellij.openapi.application.ApplicationInfo
2323
import com.intellij.openapi.application.ApplicationManager
2424
import com.intellij.openapi.project.Project
2525
import kotlinx.coroutines.runBlocking
26-
import spp.jetbrains.marker.plugin.SourceMarkerStartupActivity
2726
import spp.jetbrains.PluginBundle
27+
import spp.jetbrains.marker.plugin.SourceMarkerStartupActivity
2828
import spp.jetbrains.sourcemarker.SourceMarkerPlugin
2929

3030
/**
@@ -55,7 +55,8 @@ class PluginSourceMarkerStartupActivity : SourceMarkerStartupActivity() {
5555
"Unsupported product code",
5656
"Unsupported product code: ${ApplicationInfo.getInstance().build.productCode}",
5757
NotificationType.ERROR
58-
)
58+
),
59+
project
5960
)
6061
return
6162
}

0 commit comments

Comments
 (0)