Skip to content

Commit c971d69

Browse files
committed
fix: ignore if no line number
1 parent 60dc2b0 commit c971d69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/src/main/kotlin/spp/jetbrains/sourcemarker/instrument/LiveInstrumentEventListener.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class LiveInstrumentEventListener(
156156
private fun addGutterMark(fileMarker: SourceFileMarker, instrument: LiveInstrument) {
157157
if (fileMarker.getGutterMarks().any { it.getUserData(INSTRUMENT_ID) == instrument.id }) {
158158
return
159+
} else if (instrument.location.line == -1) {
160+
return
159161
}
160162

161163
val gutterMark = createExpressionGutterMark(fileMarker, instrument.location.line)

0 commit comments

Comments
 (0)