in src/Microsoft.VisualStudio.SlowCheetah.VS/Options/AdvancedOptionsDialogPage.cs [94:122]
public override void LoadSettingsFromStorage()
{
try
{
this.InitializeDefaults();
using (RegistryKey userRootKey = SlowCheetahPackage.OurPackage.UserRegistryRoot)
using (RegistryKey cheetahKey = userRootKey.OpenSubKey(RegOptionsKey))
{
if (cheetahKey != null)
{
object previewTool = cheetahKey.GetValue(RegPreviewExe);
if (previewTool != null && (previewTool is string))
{
this.PreviewToolExecutablePath = (string)previewTool;
}
object previewCmdLine = cheetahKey.GetValue(RegPreviewCmdLine);
if (previewCmdLine != null && (previewCmdLine is string))
{
this.PreviewToolCommandLine = (string)previewCmdLine;
}
}
}
}
catch (Exception e)
{
Debug.Assert(false, "Error reading Slow Cheetah settings from the registry: " + e.Message);
}
}