@@ -86,7 +86,7 @@ public IEnumerable<CodeIssue> GetIssues(BaseRefactoringContext context)
8686 }
8787 }
8888
89- static event Action IssueSeveritySettingsSaved ;
89+ static event EventHandler IssueSeveritySettingsSaved ;
9090
9191 internal static void SaveIssueSeveritySettings ( )
9292 {
@@ -100,7 +100,7 @@ internal static void SaveIssueSeveritySettings()
100100 }
101101 }
102102 if ( IssueSeveritySettingsSaved != null )
103- IssueSeveritySettingsSaved ( ) ;
103+ IssueSeveritySettingsSaved ( null , EventArgs . Empty ) ;
104104 }
105105
106106 readonly ITextEditor editor ;
@@ -112,6 +112,7 @@ public IssueManager(ITextEditor editor)
112112 this . markerService = editor . GetService ( typeof ( ITextMarkerService ) ) as ITextMarkerService ;
113113 //SD.ParserService.ParserUpdateStepFinished += ParserService_ParserUpdateStepFinished;
114114 SD . ParserService . ParseInformationUpdated += SD_ParserService_ParseInformationUpdated ;
115+ SD . ParserService . LoadSolutionProjectsThread . Finished += RerunAnalysis ;
115116 IssueSeveritySettingsSaved += RerunAnalysis ; // re-run analysis when settings are changed
116117 editor . ContextActionProviders . Add ( this ) ;
117118 }
@@ -121,6 +122,7 @@ public void Dispose()
121122 editor . ContextActionProviders . Remove ( this ) ;
122123 //SD.ParserService.ParserUpdateStepFinished -= ParserService_ParserUpdateStepFinished;
123124 SD . ParserService . ParseInformationUpdated -= SD_ParserService_ParseInformationUpdated ;
125+ SD . ParserService . LoadSolutionProjectsThread . Finished -= RerunAnalysis ;
124126 IssueSeveritySettingsSaved -= RerunAnalysis ;
125127 if ( cancellationTokenSource != null )
126128 cancellationTokenSource . Cancel ( ) ;
@@ -263,7 +265,7 @@ void SD_ParserService_ParseInformationUpdated(object sender, ParseInformationEve
263265 }
264266 }
265267
266- async void RerunAnalysis ( )
268+ async void RerunAnalysis ( object sender , EventArgs e )
267269 {
268270 var snapshot = editor . Document . CreateSnapshot ( ) ;
269271 var parseInfo = await SD . ParserService . ParseAsync ( editor . FileName , snapshot ) as CSharpFullParseInformation ;
0 commit comments