Skip to content

Commit dbe6159

Browse files
committed
fix: instrument is active once applied
1 parent 08f92a3 commit dbe6159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/kotlin/spp/jetbrains/sourcemarker/instrument/ui/model/InstrumentOverview.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package spp.jetbrains.sourcemarker.instrument.ui.model
1818

1919
import spp.protocol.instrument.LiveInstrumentType
20+
import spp.protocol.instrument.event.LiveInstrumentApplied
2021
import spp.protocol.instrument.event.LiveInstrumentEvent
21-
import spp.protocol.instrument.event.LiveInstrumentHit
2222
import spp.protocol.instrument.event.LiveInstrumentRemoved
2323
import java.time.Instant
2424

@@ -47,7 +47,7 @@ data class InstrumentOverview(
4747
"Complete"
4848
} else if (events.any { it is LiveInstrumentRemoved && it.cause != null }) {
4949
"Error"
50-
} else if (events.any { it is LiveInstrumentHit }) {
50+
} else if (events.any { it is LiveInstrumentApplied }) {
5151
"Active"
5252
} else {
5353
"Pending"

0 commit comments

Comments
 (0)