@@ -69,6 +69,11 @@ interface FocusModelAlertsViewEvent {
6969 dbUri : string ;
7070}
7171
72+ interface RevealInModelAlertsViewEvent {
73+ dbUri : string ;
74+ modeledMethod : ModeledMethod ;
75+ }
76+
7277export class ModelingEvents extends DisposableObject {
7378 public readonly onActiveDbChanged : AppEvent < void > ;
7479 public readonly onDbOpened : AppEvent < DatabaseItem > ;
@@ -84,6 +89,7 @@ export class ModelingEvents extends DisposableObject {
8489 public readonly onRevealInModelEditor : AppEvent < RevealInModelEditorEvent > ;
8590 public readonly onFocusModelEditor : AppEvent < FocusModelEditorEvent > ;
8691 public readonly onFocusModelAlertsView : AppEvent < FocusModelAlertsViewEvent > ;
92+ public readonly onRevealInModelAlertsView : AppEvent < RevealInModelAlertsViewEvent > ;
8793
8894 private readonly onActiveDbChangedEventEmitter : AppEventEmitter < void > ;
8995 private readonly onDbOpenedEventEmitter : AppEventEmitter < DatabaseItem > ;
@@ -99,6 +105,7 @@ export class ModelingEvents extends DisposableObject {
99105 private readonly onRevealInModelEditorEventEmitter : AppEventEmitter < RevealInModelEditorEvent > ;
100106 private readonly onFocusModelEditorEventEmitter : AppEventEmitter < FocusModelEditorEvent > ;
101107 private readonly onFocusModelAlertsViewEventEmitter : AppEventEmitter < FocusModelAlertsViewEvent > ;
108+ private readonly onRevealInModelAlertsViewEventEmitter : AppEventEmitter < RevealInModelAlertsViewEvent > ;
102109
103110 constructor ( app : App ) {
104111 super ( ) ;
@@ -176,6 +183,12 @@ export class ModelingEvents extends DisposableObject {
176183 app . createEventEmitter < FocusModelAlertsViewEvent > ( ) ,
177184 ) ;
178185 this . onFocusModelAlertsView = this . onFocusModelAlertsViewEventEmitter . event ;
186+
187+ this . onRevealInModelAlertsViewEventEmitter = this . push (
188+ app . createEventEmitter < RevealInModelAlertsViewEvent > ( ) ,
189+ ) ;
190+ this . onRevealInModelAlertsView =
191+ this . onRevealInModelAlertsViewEventEmitter . event ;
179192 }
180193
181194 public fireActiveDbChangedEvent ( ) {
@@ -301,4 +314,11 @@ export class ModelingEvents extends DisposableObject {
301314 public fireFocusModelAlertsViewEvent ( dbUri : string ) {
302315 this . onFocusModelAlertsViewEventEmitter . fire ( { dbUri } ) ;
303316 }
317+
318+ public fireRevealInModelAlertsViewEvent (
319+ dbUri : string ,
320+ modeledMethod : ModeledMethod ,
321+ ) {
322+ this . onRevealInModelAlertsViewEventEmitter . fire ( { dbUri, modeledMethod } ) ;
323+ }
304324}
0 commit comments