File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ You can also ignore additional attributes by adding to this list (short name or
175175 [ Description ( "Set to true to hide classes, namespaces and assemblies that are fully covered." ) ]
176176 public bool HideFullyCovered { get ; set ; }
177177
178- [ SuppressMessage ( "Usage" , "VSTHRD010:Invoke single-threaded types on Main thread" ) ]
179178 public override void SaveSettingsToStorage ( )
180179 {
181180 AppOptionsStorageProvider . SaveSettingsToStorage ( this ) ;
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ public IAppOptions Get()
3535 return options ;
3636 }
3737
38- [ SuppressMessage ( "Usage" , "VSTHRD010:Invoke single-threaded types on Main thread" ) ]
3938 private WritableSettingsStore EnsureStore ( )
4039 {
40+ ThreadHelper . ThrowIfNotOnUIThread ( ) ;
4141 var settingsManager = new ShellSettingsManager ( ServiceProvider . GlobalProvider ) ;
4242 var settingsStore = settingsManager . GetWritableSettingsStore ( SettingsScope . UserSettings ) ;
4343
@@ -53,7 +53,6 @@ private PropertyInfo[] ReflectProperties()
5353 return AppOptionsType . GetProperties ( BindingFlags . DeclaredOnly | BindingFlags . Public | BindingFlags . Instance ) ;
5454 }
5555
56- [ SuppressMessage ( "Usage" , "VSTHRD010:Invoke single-threaded types on Main thread" ) ]
5756 public void LoadSettingsFromStorage ( AppOptions instance )
5857 {
5958 var settingsStore = EnsureStore ( ) ;
@@ -85,7 +84,7 @@ public void LoadSettingsFromStorage(AppOptions instance)
8584 }
8685 }
8786 }
88- [ SuppressMessage ( "Usage" , "VSTHRD010:Invoke single-threaded types on Main thread" ) ]
87+
8988 public void SaveSettingsToStorage ( AppOptions appOptions )
9089 {
9190 var settingsStore = EnsureStore ( ) ;
You can’t perform that action at this time.
0 commit comments