Some inspection severity highlights do not work after changing the corresponding settings

Hi, I am working on R# Settings Manager (http://rsm.codeplex.com/) plug-in. Since R# 5 some inspection severity highlights stopped showing up (string.Format inspections for example), but not all of them. In R# 4.x everything was OK.

I need some assistance in resolving the issue. What is the best way to change inspection severity settings programmatically?

Right now the plug-in has the following code:

var settings = new HighlightingSettings(settingsManagerImpl);
settings.ReadFromXml(element);
settingsManagerImpl.Settings = settings;

      

After the settings were loaded i call:

Daemon.GetInstance(SolutionManager.Instance.CurrentSolution).Invalidate();


I guess i am missing something here, since Todo Items settings require me to call:

todoManager.SettingsChanged(true);

       

What else do i need to do to reset all cached highlights and re-evaluate them?

1 comment
Comment actions Permalink

Any ideas anyone?

0

Please sign in to leave a comment.