@@ -144,6 +144,8 @@ public InspectionResultsViewModel(
144
144
OpenInspectionSettings = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , OpenSettings ) ;
145
145
CollapseAllCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteCollapseAll ) ;
146
146
ExpandAllCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteExpandAll ) ;
147
+
148
+ OpenInspectionDetailsPageCommand = new DelegateCommand ( LogManager . GetCurrentClassLogger ( ) , ExecuteOpenInspectionDetailsPageCommand ) ;
147
149
148
150
QuickFixCommands = new List < ( ICommand command , string key , Func < IQuickFix , bool > visibility ) >
149
151
{
@@ -195,6 +197,8 @@ public INavigateSource SelectedItem
195
197
get => _selectedItem ;
196
198
set
197
199
{
200
+ SelectedInspection = null ;
201
+ CanQuickFix = false ;
198
202
if ( value == _selectedItem )
199
203
{
200
204
return ;
@@ -203,8 +207,6 @@ public INavigateSource SelectedItem
203
207
_selectedItem = value ;
204
208
OnPropertyChanged ( ) ;
205
209
OnPropertyChanged ( nameof ( QuickFixes ) ) ;
206
- SelectedInspection = null ;
207
- CanQuickFix = false ;
208
210
209
211
if ( _selectedItem is IInspectionResult inspectionResult )
210
212
{
@@ -225,6 +227,7 @@ public IInspection SelectedInspection
225
227
{
226
228
_selectedInspection = value ;
227
229
OnPropertyChanged ( ) ;
230
+ OnPropertyChanged ( nameof ( InspectionDetailsUrl ) ) ;
228
231
}
229
232
}
230
233
@@ -354,6 +357,7 @@ private bool InspectionFilter(IInspectionResult result)
354
357
public CommandBase OpenInspectionSettings { get ; }
355
358
public CommandBase CollapseAllCommand { get ; }
356
359
public CommandBase ExpandAllCommand { get ; }
360
+ public CommandBase OpenInspectionDetailsPageCommand { get ; }
357
361
358
362
private void ExecuteCollapseAll ( object parameter )
359
363
{
@@ -767,6 +771,12 @@ public bool CanDisableInspection
767
771
}
768
772
}
769
773
774
+ public string InspectionDetailsUrl => _selectedInspection == null
775
+ ? "https://rubberduckvba.com/inspections"
776
+ : $ "https://rubberduckvba.com/inspections/details/{ _selectedInspection . AnnotationName } ";
777
+
778
+ private void ExecuteOpenInspectionDetailsPageCommand ( object parameter ) => Process . Start ( new ProcessStartInfo ( InspectionDetailsUrl ) ) ;
779
+
770
780
private static readonly List < ( string Name , hAlignment alignment ) > ResultColumns = new List < ( string Name , hAlignment alignment ) >
771
781
{
772
782
( Resources . Inspections . InspectionsUI . ExportColumnHeader_Type , hAlignment . Left ) ,
0 commit comments