private static void UpdateSettings(IVsrModule module, string remoteName, bool remoteDisabled, string settingName, string value) { var prefix = remoteDisabled ? DisabledSectionPrefix : string.Empty; var fullSettingName = prefix + string.Format(settingName, remoteName); if (!string.IsNullOrWhiteSpace(value)) { module.SetSetting(fullSettingName, value); } else { module.UnsetSetting(fullSettingName); } }