File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
marker/src/main/kotlin/spp/jetbrains/marker
plugin/src/main/kotlin/spp/jetbrains/sourcemarker Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import com.intellij.openapi.fileEditor.FileEditorManager
1818import com.intellij.psi.PsiElement
1919import com.intellij.psi.PsiFile
2020import com.intellij.ui.paint.EffectPainter
21+ import org.slf4j.LoggerFactory
2122import spp.jetbrains.marker.SourceMarker
2223import spp.jetbrains.marker.SourceMarker.getSourceFileMarker
2324import spp.jetbrains.marker.source.mark.api.key.SourceKey
@@ -41,6 +42,8 @@ import javax.swing.JPanel
4142abstract class SourceInlayHintProvider : InlayHintsProvider <NoSettings > {
4243
4344 companion object {
45+ private val log = LoggerFactory .getLogger(SourceInlayHintProvider ::class .java)
46+
4447 @Volatile
4548 @JvmField
4649 var latestInlayMarkAddedAt: Long = - 1L
@@ -84,6 +87,7 @@ abstract class SourceInlayHintProvider : InlayHintsProvider<NoSettings> {
8487 sink : InlayHintsSink
8588 ): InlayHintsCollector ? {
8689 if (! SourceMarker .enabled) {
90+ log.warn(" SourceMarker is disabled. Skipping inlay hints." )
8791 return null
8892 }
8993
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ open class SourceMarkPopupAction : AnAction() {
2828
2929 override fun update (@NotNull e : AnActionEvent ) {
3030 if (! SourceMarker .enabled) {
31- log.warn(" SourceMarker popup action disabled " )
31+ log.warn(" SourceMarker disabled. Ignoring popup action. " )
3232 return
3333 }
3434
Original file line number Diff line number Diff line change @@ -543,6 +543,7 @@ object SourceMarkerPlugin {
543543 }
544544
545545 private fun initMarker (config : SourceMarkerConfig , project : Project ) {
546+ log.info(" Initializing marker" )
546547 SourceMarker .addGlobalSourceMarkEventListener(PluginSourceMarkEventListener ())
547548
548549 val gutterMarkConfig = GutterMarkConfiguration ()
@@ -580,6 +581,7 @@ object SourceMarkerPlugin {
580581 }
581582 }
582583 SourceMarker .enabled = true
584+ log.info(" Source marker enabled" )
583585
584586 // force marker re-processing
585587 DaemonCodeAnalyzer .getInstance(project).restart()
You can’t perform that action at this time.
0 commit comments