public static void IgnoreSolution(bool ignore)
{
WritableSettingsStore wstore = _settings.GetWritableSettingsStore(SettingsScope.UserSettings);
if (!wstore.CollectionExists(Constants.VSIX_NAME))
{
wstore.CreateCollection(Constants.VSIX_NAME);
}
string solution = VSPackage.GetSolution();
if (string.IsNullOrEmpty(solution))
{
return;
}
string property = GetPropertyName(solution);
if (ignore)
{
wstore.SetInt32(Constants.VSIX_NAME, property, 1);
}
else
{
wstore.DeleteProperty(Constants.VSIX_NAME, property);
}
}