Skip to content

Commit 0d193b9

Browse files
committed
fix: only select in overview if is breakpoint created by self
1 parent 986e964 commit 0d193b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ class LiveInstrumentEventListener(
141141
if (fileMarker != null) {
142142
addGutterMark(fileMarker, event.instrument)
143143

144-
InstrumentEventWindowService.getInstance(project)
145-
.selectInOverviewTab(event.instrument.id!!)
144+
if (event.instrument is LiveBreakpoint) {
145+
if (event.instrument.meta["created_by"] == UserData.selfInfo(project)?.developer?.id) {
146+
InstrumentEventWindowService.getInstance(project)
147+
.selectInOverviewTab(event.instrument.id!!)
148+
}
149+
}
146150
} else {
147151
log.debug("No file marker found for ${event.instrument.location.source}")
148152
}

0 commit comments

Comments
 (0)