File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
plugin/src/main/kotlin/spp/jetbrains/sourcemarker/instrument Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ import com.intellij.ui.content.ContentManagerEvent
2727import com.intellij.ui.content.ContentManagerListener
2828import com.intellij.xdebugger.impl.ui.ExecutionPointHighlighter
2929import spp.jetbrains.icons.PluginIcons
30+ import spp.jetbrains.marker.SourceMarker
31+ import spp.jetbrains.marker.SourceMarkerKeys
3032import spp.jetbrains.marker.service.ArtifactNamingService
3133import spp.jetbrains.sourcemarker.instrument.breakpoint.ui.BreakpointHitTab
3234import spp.jetbrains.sourcemarker.instrument.ui.InstrumentEventTab
@@ -176,6 +178,13 @@ class InstrumentEventWindowService(val project: Project) : Disposable {
176178 content.isCloseable = true
177179 contentManager.addContent(content)
178180 contentManager.setSelectedContent(content)
181+
182+ // remove gutter mark if finished
183+ if (overview.isFinished) {
184+ SourceMarker .getInstance(project).getGutterMarks()
185+ .find { it.getUserData(SourceMarkerKeys .INSTRUMENT_ID ) == overview.instrumentId }
186+ ?.dispose()
187+ }
179188 }
180189
181190 fun showInstrumentEvents (instrumentId : String ) {
You can’t perform that action at this time.
0 commit comments